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
da66be82
"serialization/vscode:/vscode.git/clone" did not exist on "84165803c8a431fe81990177ebf406d651e7e67e"
Commit
da66be82
authored
Dec 12, 2012
by
Peter Eastman
Browse files
Compile kernels in 32 bit mode on 64 bit Windows
parent
b256555e
Changes
1
Show 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 @
da66be82
...
...
@@ -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
...
...
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