We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cudaGetErrorString
1 parent 48d307e commit 3892c32Copy full SHA for 3892c32
libcudacxx/test/libcudacxx/cuda/annotated_ptr/utils.h
@@ -35,7 +35,7 @@ __device__ __host__ void assert_rt_wrap(cudaError_t code, const char* file, int
35
if (code != cudaSuccess)
36
{
37
#ifndef TEST_COMPILER_NVRTC
38
- NV_IF_ELSE_TARGET(NV_IS_DEVICE,
+ NV_IF_ELSE_TARGET(NV_IS_HOST,
39
(printf("assert: %s %s %d\n", cudaGetErrorString(code), file, line);),
40
(printf("assert: error=%d %s %d\n", code, file, line);))
41
#endif // !TEST_COMPILER_NVRTC
0 commit comments