Skip to content

Commit

Permalink
__builtin_isfinite is only available above nvrtc 12.2 (#3644)
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco authored Feb 3, 2025
1 parent 2935d43 commit 5088b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__cccl/builtin.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
# undef _CCCL_BUILTIN_IS_CONSTANT_EVALUATED
#endif // _CCCL_STD_VER < 2014 && _CCCL_CUDA_COMPILER(NVCC)

#if _CCCL_CHECK_BUILTIN(builtin_isfinite) || _CCCL_COMPILER(GCC) || (_CCCL_COMPILER(NVRTC) && !_CCCL_COMPILER_MSVC)
#if _CCCL_CHECK_BUILTIN(builtin_isfinite) || _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVRTC, >, 12, 2)
# define _CCCL_BUILTIN_ISFINITE(...) __builtin_isfinite(__VA_ARGS__)
#endif // _CCCL_CHECK_BUILTIN(isfinite)

Expand Down

0 comments on commit 5088b64

Please sign in to comment.