MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / hostToDevice

Method hostToDevice

samples/common/sampleDevice.h:411–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 }
410
411 void hostToDevice(TrtCudaStream& stream) override
412 {
413 cudaCheck(cudaMemcpyAsync(mDeviceBuffer.get(), mHostBuffer.get(), mSize, cudaMemcpyHostToDevice, stream.get()));
414 }
415
416 void deviceToHost(TrtCudaStream& stream) override
417 {

Callers

nothing calls this directly

Calls 2

cudaCheckFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected