Skip to content
Snippets Groups Projects
Commit 80f1fc5d authored by Wouter Klijn's avatar Wouter Klijn
Browse files

Task #4360: Add additional debug information on failure of runtime compilation

parent 2782c13f
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,10 @@ namespace CudaRuntimeCompiler ...@@ -107,7 +107,10 @@ namespace CudaRuntimeCompiler
// Fetch and return PTX, if any // Fetch and return PTX, if any
string ptxStr = ptxFileContent.str(); string ptxStr = ptxFileContent.str();
if (ptxStr.empty()) { if (ptxStr.empty())
{
LOG_DEBUG(" NVCC Compilation of cuda kernel failed. Command line arguments:");
LOG_DEBUG(cmd);
// log that we have a failed compile run // log that we have a failed compile run
THROW(Exception, "nvcc compilation failed!"); THROW(Exception, "nvcc compilation failed!");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment