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
3af4da86
Commit
3af4da86
authored
Aug 21, 2012
by
Peter Eastman
Browse files
Fixed compilation error on compute level 2.1 GPUs
parent
f352d116
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cuda2/src/CudaContext.cpp
platforms/cuda2/src/CudaContext.cpp
+1
-1
No files found.
platforms/cuda2/src/CudaContext.cpp
View file @
3af4da86
...
@@ -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
{
...
...
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