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

Function ck

engine/src/kernels/expdec_bench.cpp:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120bool g_cuda_error = false;
121
122bool ck(cudaError_t e, const char* what) {
123 if (e == cudaSuccess) return true;
124 std::printf("CUDA: %s: %s\n", what, cudaGetErrorString(e));
125 g_cuda_error = true;
126 return false;
127}
128
129uint16_t sane_half(std::mt19937& rng) { // a finite fp16 of magnitude ~2^-10 .. 2^-6
130 const uint32_t r = rng();

Callers 3

allocMethod · 0.70
run_deviceFunction · 0.70
mainFunction · 0.70

Calls 1

cudaGetErrorStringFunction · 0.50

Tested by

no test coverage detected