"src/vscode:/vscode.git/clone" did not exist on "01314637bb96f25774cf3964ff479219c1bc4c7a"
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 @@
#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
}
......
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