Skip to content

Commit

Permalink
Remove nvcc workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 4, 2023
1 parent 5b051d8 commit 56d436b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/llama/mapping/AoS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace llama::mapping
RecordCoord<RecordCoords...> = {}) const -> NrAndOffset<size_type>
{
constexpr std::size_t flatFieldIndex =
#ifdef __NVCC__
#if defined(__NVCC__) && __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ <= 6
*& // mess with nvcc compiler state to workaround bug
#endif
Flattener::template flatIndex<RecordCoords...>;
Expand Down
2 changes: 1 addition & 1 deletion include/llama/mapping/AoSoA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace llama::mapping
RecordCoord<RecordCoords...> = {}) const -> NrAndOffset<size_type>
{
constexpr std::size_t flatFieldIndex =
#ifdef __NVCC__
#if defined(__NVCC__) && __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ <= 6
*& // mess with nvcc compiler state to workaround bug
#endif
Flattener::template flatIndex<RecordCoords...>;
Expand Down
2 changes: 1 addition & 1 deletion include/llama/mapping/One.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace llama::mapping
RecordCoord<RecordCoords...> = {}) const -> NrAndOffset<size_type>
{
constexpr std::size_t flatFieldIndex =
#ifdef __NVCC__
#if defined(__NVCC__) && __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ <= 6
*& // mess with nvcc compiler state to workaround bug
#endif
Flattener::template flatIndex<RecordCoords...>;
Expand Down
2 changes: 1 addition & 1 deletion include/llama/mapping/SoA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace llama::mapping
else
{
constexpr std::size_t flatFieldIndex =
#ifdef __NVCC__
#if defined(__NVCC__) && __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ <= 6
*& // mess with nvcc compiler state to workaround bug
#endif
Flattener::template flatIndex<RecordCoords...>;
Expand Down

0 comments on commit 56d436b

Please sign in to comment.