mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-18 09:45:55 +01:00
More info dump on error from CUDA
This commit is contained in:
parent
fe700a183a
commit
275c1c920f
@ -102,6 +102,8 @@ void LambdaApplySIMT(uint64_t Isites, uint64_t Osites, lambda Lambda)
|
|||||||
cudaError err = cudaGetLastError(); \
|
cudaError err = cudaGetLastError(); \
|
||||||
if ( cudaSuccess != err ) { \
|
if ( cudaSuccess != err ) { \
|
||||||
printf("Cuda error %s \n", cudaGetErrorString( err )); \
|
printf("Cuda error %s \n", cudaGetErrorString( err )); \
|
||||||
|
puts(__FILE__); \
|
||||||
|
printf("Line %d\n",__LINE__); \
|
||||||
exit(0); \
|
exit(0); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user