chundoong-lab-ta/SamsungDS23/cuda-info/cuda_info.cu

17 lines
671 B
Plaintext
Raw Normal View History

2023-08-02 02:28:13 +09:00
#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;
}