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

Method waitForCuda

Source/Falcor/Core/API/CopyContext.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109#if FALCOR_HAS_CUDA
110void CopyContext::waitForCuda(cudaStream_t stream)
111{
112 if (mpDevice->getType() == Device::Type::D3D12)
113 {
114 mpLowLevelData->getCudaSemaphore()->waitForCuda(this, stream);
115 }
116 else
117 {
118 // In the past, we used to wait for all CUDA work to be done.
119 // Since GFX with Vulkan doesn't support shared fences yet, we do the same here.
120 cuda_utils::deviceSynchronize();
121 }
122}
123
124void CopyContext::waitForFalcor(cudaStream_t stream)
125{

Callers 3

executeMethod · 0.45
verifyDataMethod · 0.45
FALCOR_SCRIPT_BINDINGFunction · 0.45

Calls 2

deviceSynchronizeFunction · 0.85
getTypeMethod · 0.45

Tested by 1

verifyDataMethod · 0.36