| 11 | #include "../string.h" |
| 12 | |
| 13 | static const char* curand_get_error_string(curandStatus_t s) |
| 14 | { |
| 15 | switch(s) |
| 16 | { |
| 17 | case CURAND_STATUS_NOT_INITIALIZED: |
| 18 | return "CUDA Runtime API initialization failed."; |
| 19 | case CURAND_STATUS_LENGTH_NOT_MULTIPLE: |
| 20 | return "The requested length must be a multiple of two."; |
| 21 | default: |
| 22 | return "A call to cuRAND failed"; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Check the return value of a call to the cuDNN runtime for an error condition. |
| 27 | #define CHECK_CURAND(call) \ |
nothing calls this directly
no outgoing calls
no test coverage detected