Commit 5c2569b0 authored by Peter Eastman's avatar Peter Eastman
Browse files

On Windows, an incorrect flag was being passed to nvcc

parent 49118236
...@@ -367,7 +367,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string ...@@ -367,7 +367,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string
out << src.str(); out << src.str();
out.close(); out.close();
#ifdef WIN32 #ifdef WIN32
string command = ""+compiler+" --ptx --machine 32 -arch=compute_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile; string command = ""+compiler+" --ptx --machine 32 -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#else #else
string command = "\""+compiler+"\" --ptx -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\""; string command = "\""+compiler+"\" --ptx -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\"";
#endif #endif
......
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