17 lines
671 B
Plaintext
17 lines
671 B
Plaintext
|
#include <cstdio>
|
||
|
|
||
|
#define CHECK_CUDA(call) \
|
||
|
do { \
|
||
|
cudaError_t status_ = call; \
|
||
|
if (status_ != cudaSuccess) { \
|
||
|
fprintf(stderr, "CUDA error (%s:%d): %s:%s\n", __FILE__, __LINE__, \
|
||
|
cudaGetErrorName(status_), cudaGetErrorString(status_)); \
|
||
|
exit(EXIT_FAILURE); \
|
||
|
} \
|
||
|
} while (0)
|
||
|
|
||
|
int main() {
|
||
|
// TODO
|
||
|
return 0;
|
||
|
}
|