Commit 19757775 authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Fixes a minor windows compiler invocation issue where C:\Program Files becomes...

Fixes a minor windows compiler invocation issue where C:\Program Files becomes delimited by the space. Also enables debugging libraries to be built in debug mode for WIN32 + Visual Studio. 
parent 5c4abf73
......@@ -403,7 +403,11 @@ CUmodule CudaContext::createModule(const string source, const map<string, string
out.close();
string bits = intToString(8*sizeof(void*));
#ifdef WIN32
string command = ""+compiler+" --ptx --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#ifdef _DEBUG
string command = "\""+compiler+"\" --ptx -G -g --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#else
string command = "\""+compiler+"\" --ptx -lineinfo --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o "+outputFile+" "+options+" "+inputFile+" 2> "+logFile;
#endif
int res = compileInWindows(command);
#else
string command = "\""+compiler+"\" --ptx --machine "+bits+" -arch=sm_"+gpuArchitecture+" -o \""+outputFile+"\" "+options+" \""+inputFile+"\" 2> \""+logFile+"\"";
......
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