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
16f43ede
"src/vscode:/vscode.git/clone" did not exist on "01314637bb96f25774cf3964ff479219c1bc4c7a"
Commit
16f43ede
authored
Jun 20, 2012
by
Peter Eastman
Browse files
Made the identification of temporary files directory more robust
parent
bd22eada
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
platforms/cuda2/src/CudaPlatform.cpp
platforms/cuda2/src/CudaPlatform.cpp
+5
-1
No files found.
platforms/cuda2/src/CudaPlatform.cpp
View file @
16f43ede
...
...
@@ -35,6 +35,7 @@
#include <algorithm>
#include <cctype>
#include <sstream>
#include <cstdio>
using
namespace
OpenMM
;
using
namespace
std
;
...
...
@@ -87,7 +88,10 @@ CudaPlatform::CudaPlatform() {
setPropertyDefaultValue
(
CudaTempDirectory
(),
string
(
getenv
(
"TEMP"
)));
#else
setPropertyDefaultValue
(
CudaCompiler
(),
"/usr/local/cuda/bin/nvcc"
);
setPropertyDefaultValue
(
CudaTempDirectory
(),
string
(
getenv
(
"TMPDIR"
)));
char
*
tmpdir
=
getenv
(
"TMPDIR"
);
if
(
tmpdir
==
NULL
)
tmpdir
=
P_tmpdir
;
setPropertyDefaultValue
(
CudaTempDirectory
(),
string
(
tmpdir
));
#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