Skip to content

Commit

Permalink
fix remaining uses of __CUDA_ARCH__
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 24, 2023
1 parent 9b7cd2c commit 7c2c9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_GpuAtomic.H
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace detail {

#endif

#if defined(AMREX_USE_CUDA) && (__CUDA_ARCH__ < 600)
#if defined(AMREX_USE_CUDA) && defined(__CUDA_ARCH__) && (__CUDA_ARCH__ < 600)

AMREX_GPU_DEVICE AMREX_FORCE_INLINE
double Add_device (double* const sum, double const value) noexcept
Expand Down
4 changes: 2 additions & 2 deletions Src/Base/Parser/AMReX_Parser_Y.H
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ template <typename T>
AMREX_GPU_HOST_DEVICE AMREX_NO_INLINE
T parser_math_comp_ellint_1 (T a)
{
#if defined(__GNUC__) && !defined(__clang__) && !defined(__CUDA_ARCH__)
#if defined(__GNUC__) && !defined(__clang__) && !defined(__CUDA_ARCH__) && !defined(__NVCOMPILER)
return std::comp_ellint_1(a);
#else
amrex::ignore_unused(a);
Expand All @@ -363,7 +363,7 @@ template <typename T>
AMREX_GPU_HOST_DEVICE AMREX_NO_INLINE
T parser_math_comp_ellint_2 (T a)
{
#if defined(__GNUC__) && !defined(__clang__) && !defined(__CUDA_ARCH__)
#if defined(__GNUC__) && !defined(__clang__) && !defined(__CUDA_ARCH__) && !defined(__NVCOMPILER)
return std::comp_ellint_2(a);
#else
amrex::ignore_unused(a);
Expand Down

0 comments on commit 7c2c9b6

Please sign in to comment.