Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
static 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
26
static void check(cudaError_t e) {
27
if (e != cudaSuccess) {
Callers
3
_progress
Function · 0.85
__exit__
Method · 0.85
transform
Function · 0.85
Calls
1
store
Method · 0.45
Tested by
1
__exit__
Method · 0.68