Skip to content

Phase 15.1: CUDA stream/event operations missing error checking #30

Description

@Cle2ment

Problem

Three CUDA operations in CUDARenderer.cu lack error checking:

  1. cudaEventRecord / cudaStreamWaitEvent (line 365-366): If cudaEventRecord fails, compute stream won't properly wait for uploads → kernel may read incomplete data.

  2. cudaEventCreate (line 180): All other CUDA calls in CUDARenderer_Init are checked — only cudaEventCreate is not.

  3. ConvertToRGBAKernel launch (line 441-445): No cudaGetLastError or any error check after kernel launch → silent failures.

Fix

  • Wrap cudaEventRecord/cudaStreamWaitEvent in error checks
  • Add explicit error check for cudaEventCreate
  • Add cudaGetLastError check after ConvertToRGBAKernel launch

Files

  • RayTracing/src/CUDARenderer.cu

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