Page 1 of 1

Run Example Files problem

Posted: Wed Jul 29, 2009 6:55 pm
by jopd83
Hi. I have a question.

I am trying to install Openmm from the binaries on a window xp & NVIDIA. I installed Visual studio 2005(a.k.a VS 8), CUDA 2.2 and .NETFRAMEWORK.
And I set the System variabl Path like the 'OpenMM Installation Instructions'

But, when I run the HelloArgon.sln,
I can't see the output, but I can see the error message (You get the error message : "The application failed to initialize properly(0xc0150002).Click OK to terminate the application")

In 'OpenMM Installation Instructions' manual,
this error message is though because OpenMM is trying to run the ATI GPU software(Brook).
But, in my case, OpenMM is trying to run the NVIDIA GPU.

Please, somebody help me.

RE: Run Example Files problem

Posted: Wed Jul 29, 2009 8:18 pm
by sherm
Hi, Cho. A few things to try:
(1) Comment out the loadPluginsFromDirectory() call at the beginning of the simulateArgon() fucntion. Then verify that you are able to run without the plugins (meaning you'll be using the Reference platform). If that works, then the problem is most likely trouble with the Brook plugin.
(2) Assuming you are able to run with the Reference platform, go to wherever you installed OpenMM and look in OpenMM/lib/plugins. If you see anything there with "Brook" in the name, delete it. Then put back the loadPluginsFromDirectory() call and let us know what happens.

Regards, Sherm

RE: Run Example Files problem

Posted: Thu Jul 30, 2009 6:09 pm
by rjy123
Thanks for your reply.

I tried doing as your comments
1)comment out the loadPluginsFromDirectory()call
2)delete anything with "Brook" in OpenMM/lib/plugins

But, tha doesn't work, I can see only same error message.

RE: Run Example Files problem

Posted: Thu Jul 30, 2009 7:31 pm
by sherm
In that case it sounds as though the example is not finding any library, even the basic OpenMM library containing the Reference platform. Depending what OS you're running, you either need to set the PATH (Windows) or LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (Mac). Please see Section 4 of the installation instructions.

If you have any more trouble you may want to delete everything and reinstall from scratch, being very careful to follow the instructions exactly.

Sherm

RE: Run Example Files problem

Posted: Wed Aug 19, 2009 10:25 am
by akila
I have installed OpenMM (from source) in /usr/local/openmm. The HelloArgon file in OpenMMPreview3-Source within /usr/local/openmm compiles fine. I have installed the additional examples OpenMM-Examples in my home directory and have added /usr/local/openmm/lib to LD_LIBRARY_PATH. But running make gives me the error that it cannot find -lOpenMM.

RE: Run Example Files problem

Posted: Wed Aug 19, 2009 4:18 pm
by sherm
Hi, Akila. A few thoughts:
- are you on Linux or Mac? Mac uses a different environment variable name for the library path.
- I am confused about the specific error you're getting. Do you mean literally "-lOpenMM"? That string would appear at link time rather than run time.
- Have you checked /usr/local/openmm/lib to make sure the libraries actually were installed there correctly?

Regards, Sherm