I recently updated the driver to 591.44 and tested sample programs of my OptiX wrapper. Then I noticed some programs run weirdly with debug build, specifically with debuggable (-G) ptx/OptiX-IR.
For example, a sample program demonstrating deformation blur looks like with the issue:
RNG buffer is initialized with random seeds on the host, but I observe that the RNGâs state is constantly zero when I put printf just after this code. The program is also able to use a globally same RNG over image space (else part), the program looks fine with that path. Therefore it looks that something weird happens with loading from RNG buffer.
You can test this sample program from
with CMake. git clone --recursive git@github.com:shocker-0x15/OptiX_Utility.git
09. deformation_blur is this sample.
Thanks,
My environment:
OptiX 9.0
CUDA 13.0, 13.1
Driver: 591.44
Geforce RTX 4080
Visuals Studio 2022 17.14.21
Windows 11 Pro 25H2 26200.7309
Hi @shocker.0x15 , Iâm looking into this. I do have many errors like:
2>------ Build started: Project: 09.deformation_blur, Configuration: Release x64 ------
2>Build started 09/12/2025 17:35:11.
2>Target ResolveProjectReferences:
2>Target PrepareForBuild:
2> Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See Problem Details Window - Visual Studio (Windows) | Microsoft Learn for more details.
2>Target InitializeBuildStatus:
2> Touching âdeformation_blur.dir\Release\09.defor.ED0E162F.tlog\unsuccessfulbuildâ.
2>Target CustomBuild:
2> All outputs are up-to-date.
2>Target GetReferencedVCProjectsInfo:
2>Target ClCompile:
2> common.cpp
2> gui_common.cpp
2> obj_loader.cpp
2> deformation_blur_main.cpp
2> C:\src\github\OptiX_Utility\samples\common\common.h(275,19): error C2011: âint2â: âstructâ type redefinition
2> (compiling source file â../../../samples/deformation_blur/deformation_blur_main.cppâ)
2> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1\include\vector_types.h(259,1):
2> see declaration of âint2â
I just did cmake .. to configure. Have your same environment (CUDA 13.1, MSVS 17.14.20). Do you already know the fix to this? That would speed up my investigation.
Weird.
I cloned my repository (main branch) again git clone --recursive git@github.com:shocker-0x15/OptiX_Utility.git optixu
to make sure, then did Cmake without changing any values. All the samples compile without any issues.
My environment again:
OptiX 9.0.0
CUDA 13.1
Driver 591.44
Geforce RTX 4080
Visual Studio Community 2022 17.14.21
Windows 11 Pro 25H2 26200.7309
Not sure why you need cuda_runtime.h to compile (I have intentionally avoided to include CUDA Runtime API to make sure the library works based on driver API), but getting different results between Debug and Release should still be weird and you seem to get a wrong result even with release.
Something goes wrong.
[edited 15Dec25 debug PTX is failing for me too] The release build output is now correct, the random partial-spheres arenât flat anymore (Iâve replaced calls to float3(x) to make_float3(x), because I commented out all the re-definitions of vector types (int2,float2,...) in common.h, so float3(x) is now a cast, not a constructor).
The debug output when using optix-ir or PTX remain wrong, they need more investigation.