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

Function alloc

engine/src/kernels/mmvf_rows_parity.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 if (e != cudaSuccess) { std::fprintf(stderr, "%s\n", cudaGetErrorString(e)); std::exit(2); }
15}
16template<class T> static T* alloc(size_t n) {
17 T* p = nullptr; ck(cudaMalloc(&p, n * sizeof(T))); return p;
18}
19int main() {
20 const char* flag = std::getenv("STRATA_MMVF_ROWS");
21 if (!flag || flag[0] != '1') { std::fprintf(stderr, "set STRATA_MMVF_ROWS=1\n"); return 2; }

Callers 15

upload_f32Method · 0.85
upload_matrixMethod · 0.85
size_buffersMethod · 0.85
FixtureMethod · 0.85
loadMethod · 0.85
doorbell_initFunction · 0.85
DevMethod · 0.85
putMethod · 0.85
FixtureMethod · 0.85
loadMethod · 0.85
clone_allocMethod · 0.85
doorbell_initFunction · 0.85

Calls 2

ckFunction · 0.70
cudaMallocFunction · 0.50

Tested by 4

FixtureMethod · 0.68
FixtureMethod · 0.68
DevMethod · 0.68
upMethod · 0.68