mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Check if gpu_assert was overridden in TensorGpuHipCudaDefines
This commit is contained in:
parent
07355d47c6
commit
01d7e6ee9b
@ -78,6 +78,9 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// gpu_assert can be overridden
|
||||||
|
#ifndef gpu_assert
|
||||||
|
|
||||||
#if defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && (EIGEN_CUDACC_VER==0))
|
#if defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && (EIGEN_CUDACC_VER==0))
|
||||||
// clang-cuda and HIPCC do not support the use of assert on the GPU side.
|
// clang-cuda and HIPCC do not support the use of assert on the GPU side.
|
||||||
#define gpu_assert(COND)
|
#define gpu_assert(COND)
|
||||||
@ -85,4 +88,6 @@
|
|||||||
#define gpu_assert(COND) assert(COND)
|
#define gpu_assert(COND) assert(COND)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // gpu_assert
|
||||||
|
|
||||||
#endif // EIGEN_CXX11_TENSOR_GPU_HIP_CUDA_DEFINES_H
|
#endif // EIGEN_CXX11_TENSOR_GPU_HIP_CUDA_DEFINES_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user