MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / free_gpu_tensor

Function free_gpu_tensor

include/common.h:325–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323
324template <class DType>
325void free_gpu_tensor(DType* ptr) {
326 CUDA_CHECK(cudaFree(ptr));
327}
328
329template <class DType>
330void copy_to_gpu(DType* hptr, DType* dptr, std::vector<int> shape) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected