From cc382be1b3e3d0b933590d8fbce55b44a77030fc Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 19 Jul 2021 12:44:16 -0700 Subject: [PATCH] Attempt to work around issue #145 (Which seems to be a strange MSVC + CUDA 11.1 interaction...) --- src/pbrt/wavefront/integrator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pbrt/wavefront/integrator.cpp b/src/pbrt/wavefront/integrator.cpp index 2c14b78..f58bde6 100644 --- a/src/pbrt/wavefront/integrator.cpp +++ b/src/pbrt/wavefront/integrator.cpp @@ -491,11 +491,15 @@ Float WavefrontPathIntegrator::Render() { Options->quiet, Options->useGPU); for (int sampleIndex = firstSampleIndex; sampleIndex < lastSampleIndex; ++sampleIndex) { + // Attempt to work around issue #145. +#if !(defined(PBRT_IS_WINDOWS) && defined(PBRT_BUILD_GPU_RENDERER) && \ + __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINIOR__ == 1) CheckCallbackScope _([&]() { return StringPrintf("Wavefront rendering failed at sample %d. Debug with " "\"--debugstart %d\"\n", sampleIndex, sampleIndex); }); +#endif // Render image for sample _sampleIndex_ LOG_VERBOSE("Starting to submit work for sample %d", sampleIndex); -- GitLab