提交 cc382be1 编写于 作者: M Matt Pharr

Attempt to work around issue #145

(Which seems to be a strange MSVC + CUDA 11.1 interaction...)
上级 5b43c5e6
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册