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

Function check

engine/src/kernels/sampler_parity.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27void check(cudaError_t e, const char* what) {
28 if (e != cudaSuccess) {
29 std::fprintf(stderr, "%s: %s\n", what, cudaGetErrorString(e));
30 std::exit(1);
31 }
32}
33
34// The host reference for the specified order: top_k -> top_p -> temperature -> argmax.
35// `temp_first` swaps the first and last stages, which is the intuitive-but-wrong order.

Callers 5

runFunction · 0.70
DeviceRowsMethod · 0.70
sampleMethod · 0.70
bench_sampledFunction · 0.70
mainFunction · 0.70

Calls 2

exitFunction · 0.85
cudaGetErrorStringFunction · 0.50

Tested by

no test coverage detected