MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / dumpBin

Method dumpBin

cpp/5_Domain_Specific/smokeParticles/ParticleSystem.cpp:395–402  ·  view source on GitHub ↗

dump particles to a system memory host

Source from the content-addressed store, hash-verified

393
394// dump particles to a system memory host
395void ParticleSystem::dumpBin(float4 **posData, float4 **velData)
396{
397 m_pos.copy(GpuArray<float4>::DEVICE_TO_HOST);
398 *posData = m_pos.getHostPtr();
399
400 m_vel.copy(GpuArray<float4>::DEVICE_TO_HOST);
401 *velData = m_vel.getHostPtr();
402}

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 2

copyMethod · 0.80
getHostPtrMethod · 0.80

Tested by

no test coverage detected