openmm icon indicating copy to clipboard operation
openmm copied to clipboard

no registered Platform called "OpenCL"

Open GuShaocheng opened this issue 2 years ago • 2 comments

Hi,

My code is running on Ubuntu 22.04. I module load cuda/11.2. Then opemm.py gave such error:

openmm.OpenMMException: There is no registered Platform called "OpenCL" File "xxx/lib/python3.9/site-packages/openmm/openmm.py", line 11790, in getPlatformByName

I checked libOpenCL.so is actually in side lib folder under cuda/11.2.

Is there any cue to solve the issue?

Thanks!

GuShaocheng avatar Oct 04 '23 21:10 GuShaocheng

That suggests the plugin didn't load properly. Try this:

from openmm import *
print(Platform.getPluginLoadFailures())

That will print out any plugins that didn't load, and hopefully helpful error messages explaining why. This line will also list all plugins that did get loaded:

print(pluginLoadedLibNames)

peastman avatar Oct 04 '23 21:10 peastman

Did you figure out the problem?

peastman avatar Nov 06 '23 20:11 peastman