OpenMM is installed on this path: E:\Sorted Files\Program Files\OpenMM
OPENMM_PLUGIN_DIR is set to: E:\Sorted Files\Program Files\OpenMM\lib\plugins
Could the fact that I used a different cl.hpp file be causing the error?
OpenMM build issues, missing files
Re: OpenMM build issues, missing files
Still having the same issue, any idea what could be going on?
- Peter Eastman
- Posts: 2593
- Joined: Thu Aug 09, 2007 1:25 pm
Re: OpenMM build issues, missing files
Those values look fine. So let's try digging a bit further.
At the very beginning of simulateArgon() in HelloArgon.cpp, there's a call to OpenMM::Platform::loadPluginsFromDirectory(). Let's find out what's really getting loaded. Immediately after that, add the following lines:
What output do you get from that?
If the OpenCL plugin isn't getting loaded, it's probably for one of two reasons: it's looking in the wrong directory, or the plugin has an unresolved dependency on another library (such as AMD's OpenCL library). If it's the latter, Dependency Walker is a useful tool for identifying the problem.
Peter
At the very beginning of simulateArgon() in HelloArgon.cpp, there's a call to OpenMM::Platform::loadPluginsFromDirectory(). Let's find out what's really getting loaded. Immediately after that, add the following lines:
Code: Select all
printf("plugin directory: %s\n", OpenMM::Platform::getDefaultPluginsDirectory().c_str());
printf("%d platforms\n", OpenMM::Platform::getNumPlatforms());
for (int i = 0; i < OpenMM::Platform::getNumPlatforms(); i++)
printf("%d: %s\n", i, OpenMM::Platform::getPlatform(i).getName().c_str());
If the OpenCL plugin isn't getting loaded, it's probably for one of two reasons: it's looking in the wrong directory, or the plugin has an unresolved dependency on another library (such as AMD's OpenCL library). If it's the latter, Dependency Walker is a useful tool for identifying the problem.
Peter
Re: OpenMM build issues, missing files
Well I'm not sure what changed, but everything seems to be working now. The output from the code I added in resulted in 2 platforms, reference and opencl. Now all the examples seem to be using opencl. I'm really not sure what changed but so far so good. Thanks for your help.