-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU rendering not working with MSCV Version 14.40 and newer #429
Comments
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 Specifically, I did the following steps after the step 6 in the original post:
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). |
Got the GPU build working with newer cuda versions by replacing all of pbrt-v4/src/pbrt/wavefront/workqueue.h Lines 22 to 34 in 88645ff
with
Thus this solves build error in #427 at least when NVIDIA Quadro RTX 3000 - cuda 12.6 - optix 8.1 |
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 #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:
to set the standard compiler version for Visual Studio
Everything should be working with that.
The text was updated successfully, but these errors were encountered: