Open Wil-Lee opened 5 months ago
Thanks for sharing the workaround!
For anyone who don't want to reinstall the CUDA (I have 12.4.1 and 12.5.1 for example), I have succeeded to properly compile the projects with specifying cuda=12.4
as -T
option to the CMake.
Specifically, I did the following steps after the step 6 in the original post:
cuda=12.4
for -T
option. (I use cmake-gui.exe (3.29.3))\
C:\ProgramData\NVIDIA Corporation\OptiX SDK 8.0.0
.The CUDA compiler identification is NVIDIA 12.4.131
.I guess that there is a way to skip even the step 6 in the original post by specifying the buildtool version of MSVC, but I couldn't for some reason (Possibly there is a bug around this).
It seems like MSVC >=14.40 breaks the framework somehow, so that the GPU rendering is not working anymore. MSCV >= 14.40 only supports CUDA 12.4+. Trying to render the killeroo-simple scene (pbrt tests scenes) results in an error: Wavefront rendering failed at sample 0. Debug with "--debugstart 0". Trying to build the framework with Cuda 12.5 results in a compile error like in https://github.com/mmp/pbrt-v4/issues/427.
I asked three other developers to try executing the GPU renderer.
I tried MSVC 14.29 and the gpu renderer works (most of the time, still some crashes).
A workaround for this with Visual Studio 2022 and Windows 10:
Everything should be working with that.