Skip to content

Commit

Permalink
Fix a warning on an unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jun 30, 2022
1 parent 03c5964 commit 173563d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llama/mapping/SoA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ namespace llama::mapping
typename Base::ArrayIndex ad,
RecordCoord<RecordCoords...> = {}) const -> NrAndOffset<size_type>
{
const auto subArrayOffset = LinearizeArrayDimsFunctor{}(ad, Base::extents())
* static_cast<size_type>(sizeof(GetType<TRecordDim, RecordCoord<RecordCoords...>>));
if constexpr(SeparateBuffers)
{
constexpr auto blob = flatRecordCoord<TRecordDim, RecordCoord<RecordCoords...>>;
Expand All @@ -92,6 +90,8 @@ namespace llama::mapping
}
else
{
const auto subArrayOffset = LinearizeArrayDimsFunctor{}(ad, Base::extents())
* static_cast<size_type>(sizeof(GetType<TRecordDim, RecordCoord<RecordCoords...>>));
constexpr std::size_t flatFieldIndex =
#ifdef __NVCC__
*& // mess with nvcc compiler state to workaround bug
Expand Down

0 comments on commit 173563d

Please sign in to comment.