MCPcopy Create free account
hub / github.com/apache/arrow / StatusFromCuda

Function StatusFromCuda

cpp/src/arrow/gpu/cuda_internal.cc:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51Status StatusFromCuda(CUresult res, const char* function_name) {
52 if (res == CUDA_SUCCESS) {
53 return Status::OK();
54 }
55 std::stringstream ss;
56 ss << "Cuda error " << res;
57 if (function_name != nullptr) {
58 ss << " in function '" << function_name << "'";
59 }
60 ss << ": " << CudaErrorDescription(res);
61 return Status::IOError(ss.str());
62}
63
64} // namespace internal
65} // namespace cuda

Callers 3

MakeStreamMethod · 0.85
MakeDeviceSyncEventMethod · 0.85
NonPrimaryRawContextMethod · 0.85

Calls 4

CudaErrorDescriptionFunction · 0.85
IOErrorFunction · 0.85
strMethod · 0.80
OKFunction · 0.50

Tested by 1

NonPrimaryRawContextMethod · 0.68