MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getCudaMemory

Method getCudaMemory

Source/Falcor/Core/API/Buffer.cpp:378–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377#if FALCOR_HAS_CUDA
378cuda_utils::ExternalMemory* Buffer::getCudaMemory() const
379{
380 if (!mCudaMemory)
381 mCudaMemory = make_ref<cuda_utils::ExternalMemory>(ref<Resource>(const_cast<Buffer*>(this)));
382 return mCudaMemory.get();
383}
384#endif
385
386inline pybind11::ndarray<pybind11::numpy> buffer_to_numpy(const Buffer& self)

Callers 3

buffer_to_torchFunction · 0.80
buffer_from_torchFunction · 0.80
buffer_copy_to_torchFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected