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
20e01186
Commit
20e01186
authored
Sep 21, 2012
by
Peter Eastman
Browse files
Can use OPENMM_CUDA_COMPILER environment variable to set the path to the CUDA compiler
parent
c5b6eca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
platforms/cuda2/src/CudaPlatform.cpp
platforms/cuda2/src/CudaPlatform.cpp
+3
-1
No files found.
platforms/cuda2/src/CudaPlatform.cpp
View file @
20e01186
...
...
@@ -97,7 +97,9 @@ CudaPlatform::CudaPlatform() {
setPropertyDefaultValue
(
CudaCompiler
(),
nvcc
);
setPropertyDefaultValue
(
CudaTempDirectory
(),
string
(
getenv
(
"TEMP"
)));
#else
setPropertyDefaultValue
(
CudaCompiler
(),
"/usr/local/cuda/bin/nvcc"
);
char
*
compiler
=
getenv
(
"OPENMM_CUDA_COMPILER"
);
string
nvcc
=
(
compiler
==
NULL
?
"/usr/local/cuda/bin/nvcc"
:
string
(
compiler
));
setPropertyDefaultValue
(
CudaCompiler
(),
nvcc
);
char
*
tmpdir
=
getenv
(
"TMPDIR"
);
if
(
tmpdir
==
NULL
)
tmpdir
=
P_tmpdir
;
...
...
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