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

Function callback

engine/bench/micro/cuda_callback_affinity.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20static void callback(void* p) {
21 auto* s = (State*) p;
22 sched_getaffinity(0, sizeof s->mask, &s->mask);
23 s->done.store(true, std::memory_order_release);
24}
25
26static void check(cudaError_t e) {
27 if (e != cudaSuccess) {

Callers 3

_progressFunction · 0.85
__exit__Method · 0.85
transformFunction · 0.85

Calls 1

storeMethod · 0.45

Tested by 1

__exit__Method · 0.68