Skip to content

Commit

Permalink
increase minimum cuda version to 11.2 for AMREX_ASSUME
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Feb 21, 2024
1 parent 9df84ca commit e38f9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Extension.H
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
#if defined(__has_cpp_attribute) && __has_cpp_attribute(assume)
# define AMREX_ASSUME(ASSUMPTION) [[assume(ASSUMPTION)]]
#else
# if defined(__CUDA_ARCH__) && defined(__CUDACC__) && ( (__CUDACC_VER_MAJOR__ > 11) || ((__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ >= 1)) )
# if defined(__CUDA_ARCH__) && defined(__CUDACC__) && ( (__CUDACC_VER_MAJOR__ > 11) || ((__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ >= 2)) )
# define AMREX_ASSUME(ASSUMPTION) __builtin_assume(ASSUMPTION)
# elif defined(AMREX_CXX_INTEL) || defined(__clang__)
# define AMREX_ASSUME(ASSUMPTION) __builtin_assume(ASSUMPTION)
Expand Down

0 comments on commit e38f9ba

Please sign in to comment.