From 28a0ca96a1ad2a3f0e09cc97b866f3b6338a09fa Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 25 Mar 2020 14:08:21 -0400 Subject: Better diagnostics on failure on CUDA. (#1288) * Better diagnostics on failure on CUDA. * Catch exceptions in render-test * * Added ability to disable reporting on CUDA failures * Stopped using exception for reporting (just write to StdWriter::out() * Removed CUDAResult type * Don't set arch type on nvrtc to see if fixes CI issues. * Try compute_30 on CUDA. * Added ability to IGNORE_ a test DIsabled rw-texture-simple and texture-get-dimensions * Disable tests that require CUDA SM7.0 Use DISABLE_ prefix to disable tests. * Disable signalUnexpectedError doing printf. --- source/core/slang-nvrtc-compiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/core/slang-nvrtc-compiler.cpp b/source/core/slang-nvrtc-compiler.cpp index db4e4f32f..5d5a1ce0f 100644 --- a/source/core/slang-nvrtc-compiler.cpp +++ b/source/core/slang-nvrtc-compiler.cpp @@ -309,7 +309,12 @@ SlangResult NVRTCDownstreamCompiler::compile(const CompileOptions& options, RefP cmdLine.addArg("-w"); // +#if 0 cmdLine.addArg("-arch=compute_70"); +#else + // Needed for Warp intrinsics + cmdLine.addArg("-arch=compute_30"); +#endif } nvrtcProgram program = nullptr; -- cgit v1.2.3