Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
5c2569b0
"ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "1062810a3364fea93d0378cab60fd04e76499eb2"
Commit
5c2569b0
authored
Jan 14, 2013
by
Peter Eastman
Browse files
On Windows, an incorrect flag was being passed to nvcc
parent
49118236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+1
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
5c2569b0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment