"platforms/hip/tests/TestHipRandom.cpp" did not exist on "3a0fa3b268f2c3206f3d8aaf9cb345010ab4e806"
Commit 16f43ede authored by Peter Eastman's avatar Peter Eastman
Browse files

Made the identification of temporary files directory more robust

parent bd22eada
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <sstream> #include <sstream>
#include <cstdio>
using namespace OpenMM; using namespace OpenMM;
using namespace std; using namespace std;
...@@ -87,7 +88,10 @@ CudaPlatform::CudaPlatform() { ...@@ -87,7 +88,10 @@ CudaPlatform::CudaPlatform() {
setPropertyDefaultValue(CudaTempDirectory(), string(getenv("TEMP"))); setPropertyDefaultValue(CudaTempDirectory(), string(getenv("TEMP")));
#else #else
setPropertyDefaultValue(CudaCompiler(), "/usr/local/cuda/bin/nvcc"); 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 #endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment