Commit da66be82 authored by Peter Eastman's avatar Peter Eastman
Browse files

Compile kernels in 32 bit mode on 64 bit Windows

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