Commit 927480f5 authored by Peter Eastman's avatar Peter Eastman
Browse files

Merge branch 'master' of https://github.com/peastman/openmm

parents 187ccbb8 71b66a9b
......@@ -48,6 +48,9 @@
#include <sstream>
#include <typeinfo>
#include <cudaProfiler.h>
#ifndef WIN32
#include <unistd.h>
#endif
#define CHECK_RESULT(result) CHECK_RESULT2(result, errorMessage);
......@@ -398,6 +401,11 @@ CUmodule CudaContext::createModule(const string source, const map<string, string
stringstream tempFileName;
tempFileName << "openmmTempKernel" << this; // Include a pointer to this context as part of the filename to avoid collisions.
#ifdef WIN32
tempFileName << "_" << GetCurrentProcessId();
#else
tempFileName << "_" << getpid();
#endif
string inputFile = (tempDir+tempFileName.str()+".cu");
string outputFile = (tempDir+tempFileName.str()+".ptx");
string logFile = (tempDir+tempFileName.str()+".log");
......
This diff is collapsed.
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