Unverified Commit c879fdbe authored by peastman's avatar peastman Committed by GitHub
Browse files

Fixed incorrect error handling on Windows (#2827)

parent 185dca21
...@@ -600,7 +600,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string ...@@ -600,7 +600,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string
#else #else
string command = compiler+" --ptx -lineinfo --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile; string command = compiler+" --ptx -lineinfo --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#endif #endif
int res = executeInWindows(command); res = executeInWindows(command);
#else #else
string command = compiler+" --ptx --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\""; string command = compiler+" --ptx --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\"";
res = std::system(command.c_str()); res = std::system(command.c_str());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment