Problem
VkCUDAInterop::SyncCUDAComplete(stream) (line 124) calls cudaStreamSynchronize(stream) but discards the return value.
If the compute stream synchronization fails, subsequent Vulkan buffer-to-image copy reads incomplete GPU data.
Fix
Check the return value of cudaStreamSynchronize and log or propagate errors.
Files
RayTracing/src/VkCUDAInterop.cpp
Problem
VkCUDAInterop::SyncCUDAComplete(stream)(line 124) callscudaStreamSynchronize(stream)but discards the return value.If the compute stream synchronization fails, subsequent Vulkan buffer-to-image copy reads incomplete GPU data.
Fix
Check the return value of
cudaStreamSynchronizeand log or propagate errors.Files
RayTracing/src/VkCUDAInterop.cpp