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

Function dev

engine/src/kernels/verify_parity.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33template <typename T> T* dev(size_t n) {
34 T* p = nullptr;
35 check(cudaMalloc(&p, n * sizeof(T)), "cudaMalloc");
36 return p;
37}
38template <typename T> void up(T* d, const std::vector<T>& h) {
39 check(cudaMemcpy(d, h.data(), h.size() * sizeof(T), cudaMemcpyHostToDevice), "upload");
40}

Callers 3

mainFunction · 0.70
whMethod · 0.50
wfMethod · 0.50

Calls 2

checkFunction · 0.70
cudaMallocFunction · 0.50

Tested by

no test coverage detected