MCPcopy Create free account
hub / github.com/dmlc/xgboost / _checkcu

Function _checkcu

demo/guide-python/external_memory.py:50–54  ·  view source on GitHub ↗
(status: "cudaError_t")

Source from the content-addressed store, hash-verified

48
49
50def _checkcu(status: "cudaError_t") -> None:
51 import cuda.bindings.runtime as cudart
52
53 if status != cudart.cudaError_t.cudaSuccess:
54 raise RuntimeError(cudart.cudaGetErrorString(status))
55
56
57def device_mem_total() -> int:

Callers 2

device_mem_totalFunction · 0.70
setup_async_poolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected