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

Function curand_get_error_string

dlib/cuda/curand_dlibapi.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "../string.h"
12
13static 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) \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected