Git Product home page Git Product logo

Comments (5)

bensebaer avatar bensebaer commented on June 1, 2024 2

Hi Lane,
thank you for your detailed reply. I was installing on a supercomputer and yes we have a version of CUDA installed. Since we didn't have the newest version of CUDA I tried to install openmm from source in the last days, but was still struggling with the install.

In the end, I figured out I can install openmm in conda linked to any CUDA-verison by specifying the requested CUDA-version:

conda install -c conda-forge openmm cudatoolkit==10.0
#for CUDA10.0, according to the manual any version of CUDA>=9.2 is supported

Also, a good way to install ccmake without admin-privileges is using conda:
conda install cmake

Perhaps, those tips might be useful for others. Anyway, thank you very much for your support!

Best
Jens

from seekr2.

lvotapka avatar lvotapka commented on June 1, 2024

Ah, this is probably because OpenMM didn't find CUDA when it was installed.

Inside the python terminal, can you type:

from simtk import openmm
openmm.Platform_getPlatformByName("CUDA")

and let me know the output. If this command throws an error, you should make sure that CUDA_HOME is defined in a linux terminal:

echo $CUDA_HOME

from seekr2.

bensebaer avatar bensebaer commented on June 1, 2024

Yes you are right CUDA_HOME is not set and is not found in python.
Do I need to install CUDA and set CUDA_HOME before installing openmm by conda?
Or do I have to set the $CUDA_PATH to the toolkit that ships with the openmm conda-package?

from seekr2.

lvotapka avatar lvotapka commented on June 1, 2024

Yes, you will need to install CUDA. What version of Linux are you using? Is it on a university network, a supercomputer, or a personal machine? Do you have sudo privileges?

If you have a system administrator who can install CUDA for you, that would probably be the best option. For instance, I would expect most supercomputers and clusters to have CUDA easily available to all users.

However, if you are stuck doing it yourself on your own machine, you can follow the instructions from NVIDIA: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html. Some Linux distributions have automatic installers that can install a version of CUDA (for instance, Ubuntu has apt-get), but I've had bad luck with these, and better luck installing CUDA from source using NVIDIA's guide. Fair warning: tread carefully with this option - CUDA is very difficult to install yourself.

from seekr2.

lvotapka avatar lvotapka commented on June 1, 2024

And once you install CUDA, OpenMM should automatically detect it. Although if not, you'll have to reinstall OpenMM. You will also need to reinstall the Seekr2 OpenMM Plugin by deleting the build/ directory inside of seekr2plugin/ and start over from the "mkdir build" step.

from seekr2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.