Skip to content

Commit 2c0dad3

Browse files
committed
MAINT: Don't rely on private cccl internals to determine nvrtc
1 parent 6062500 commit 2c0dad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsf/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ XSF_HOST_DEVICE inline bool signbit(double x) { return cuda::std::signbit(x); }
108108
XSF_HOST_DEVICE inline double hypot(double x, double y) { return cuda::std::hypot(x, y); }
109109

110110
// Fallback to global namespace for functions unsupported on NVRTC
111-
#ifndef _LIBCUDACXX_COMPILER_NVRTC
111+
#ifndef __CUDACC_RTC__
112112
XSF_HOST_DEVICE inline double ceil(double x) { return cuda::std::ceil(x); }
113113
XSF_HOST_DEVICE inline double floor(double x) { return cuda::std::floor(x); }
114114
XSF_HOST_DEVICE inline double round(double x) { return cuda::std::round(x); }

0 commit comments

Comments
 (0)