"vscode:/vscode.git/clone" did not exist on "d24bbebafe10bdde5b6816c0047dc1bec28761bf"
Commit 3af4da86 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error on compute level 2.1 GPUs

parent f352d116
...@@ -331,7 +331,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string ...@@ -331,7 +331,7 @@ CUmodule CudaContext::createModule(const string source, const map<string, string
#ifdef WIN32 #ifdef WIN32
string command = ""+compiler+" --ptx -arch=compute_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile; string command = ""+compiler+" --ptx -arch=compute_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#else #else
string command = "\""+compiler+"\" --ptx -arch=compute_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\""; string command = "\""+compiler+"\" --ptx -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\"";
#endif #endif
int res = std::system(command.c_str()); int res = std::system(command.c_str());
try { try {
......
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