Skip to content

Commit

Permalink
Check for __CUDA_ARCH_LIST__ for setting GT_CUDA_ARCH as well
Browse files Browse the repository at this point in the history
  • Loading branch information
iomaganaris committed Apr 12, 2024
1 parent c60293c commit 8f97c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gridtools/common/defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace gridtools {
#define GT_CUDACC
#ifdef __CUDA_ARCH__
#define GT_CUDA_ARCH __CUDA_ARCH__
#elif defined(__CUDA_ARCH_LIST__)
#define GT_CUDA_ARCH __CUDA_ARCH_LIST__
#endif
#elif defined(__HIP__)
#define GT_CUDACC
Expand Down

0 comments on commit 8f97c4b

Please sign in to comment.