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

Function ck

engine/src/kernels/batch_rows_parity.cpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28namespace {
29void ck(cudaError_t e, const char* w) {
30 if (e != cudaSuccess) { std::fprintf(stderr, "%s: %s\n", w, cudaGetErrorString(e)); std::exit(2); }
31}
32template <typename T> T* up(const std::vector<T>& h) {
33 T* d = nullptr;
34 ck(cudaMalloc(&d, h.size() * sizeof(T) + 64), "malloc");

Callers 5

upFunction · 0.70
downFunction · 0.70
scores_caseFunction · 0.70
attn_caseFunction · 0.70
gdn_caseFunction · 0.70

Calls 2

exitFunction · 0.85
cudaGetErrorStringFunction · 0.50

Tested by

no test coverage detected