MCPcopy Create free account
hub / github.com/Niko1221/Strata / cu

Function cu

engine/src/split/src/store.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33constexpr size_t DEV_CHUNK = (size_t) 256 << 20, HOST_CHUNK = (size_t) 1 << 30;
34
35void cu(CUresult r, const std::string& what) {
36 if (r == CUDA_SUCCESS) return;
37 const char* s = nullptr;
38 cuGetErrorString(r, &s);
39 throw std::runtime_error("store: " + what + ": " + (s ? s : "unknown error"));
40}
41bool is_host(int loc) { return loc >= NCARD; }
42int card_of(int loc) { return loc % NCARD; }
43CUmemAllocationProp prop_of(int loc) {

Callers 5

prop_ofFunction · 0.70
grantFunction · 0.70
reserveMethod · 0.70
takeMethod · 0.70
attachMethod · 0.70

Calls 1

cuGetErrorStringFunction · 0.85

Tested by

no test coverage detected