Add: IT_ASSERT in checkCudaError

This commit is contained in:
Liyan Zheng 2023-04-25 04:25:10 +08:00
parent b13b799fbe
commit f877eca517
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
if (cudaSuccess != err) { \
fprintf(stderr, "Cuda error in %s:%i : %s.\n", __FILE__, __LINE__, \
cudaGetErrorString(err)); \
IT_ASSERT(false); \
exit(EXIT_FAILURE); \
} \
}