MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / freeResources

Function freeResources

tests/unittests/fp8_gemm_test/worker.cpp:72–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70//------------------------------------------------
71
72void freeResources(void** a, void** b, void** c, void** d, void** ws)
73{
74 auto cleaner = [](void** ptr) {
75 if (*ptr != nullptr) {
76 cudaFree(*ptr);
77 *ptr = nullptr;
78 }
79 };
80 cleaner(a);
81 cleaner(b);
82 cleaner(c);
83 cleaner(d);
84 cleaner(ws);
85}
86
87//------------------------------------------------
88

Callers 1

cublasTesterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected