Skip to content

Phase 15.3: VkCUDAInterop::SyncCUDAComplete discards cudaStreamSynchronize return value #31

Description

@Cle2ment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions