| 12 | #include <vector> |
| 13 | |
| 14 | static const char* cublas_get_error_string(cublasStatus_t s) |
| 15 | { |
| 16 | switch(s) |
| 17 | { |
| 18 | case CUBLAS_STATUS_NOT_INITIALIZED: |
| 19 | return "CUDA Runtime API initialization failed."; |
| 20 | case CUBLAS_STATUS_ALLOC_FAILED: |
| 21 | return "CUDA Resources could not be allocated."; |
| 22 | default: |
| 23 | return "A call to cuBLAS failed"; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // Check the return value of a call to the cuBLAS runtime for an error condition. |
| 28 | #define CHECK_CUBLAS(call) \ |
nothing calls this directly
no outgoing calls
no test coverage detected