MCPcopy Create free account
hub / github.com/davisking/dlib / cublas_get_error_string

Function cublas_get_error_string

dlib/cuda/cublas_dlibapi.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <vector>
13
14static 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) \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected