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

Function down

engine/src/kernels/batch_rows_parity.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 return d;
37}
38template <typename T> std::vector<T> down(const T* d, size_t n) {
39 std::vector<T> h(n);
40 ck(cudaMemcpy(h.data(), d, n * sizeof(T), cudaMemcpyDeviceToHost), "download");
41 return h;
42}
43uint16_t f2h(float f) { __half h = __float2half(f); return *reinterpret_cast<uint16_t*>(&h); }
44
45int bad = 0;

Callers 3

scores_caseFunction · 0.70
attn_caseFunction · 0.70
gdn_caseFunction · 0.70

Calls 3

ckFunction · 0.70
cudaMemcpyFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected