Selecting which GPU to run a simulation

OpenMM Zephyr provides a visual application for running GPU-accelerated molecular simulations.
POST REPLY
User avatar
Luis Fernandes
Posts: 4
Joined: Wed Mar 03, 2010 6:36 am

Selecting which GPU to run a simulation

Post by Luis Fernandes » Wed Mar 03, 2010 3:52 pm

Hi

I have system with two GPU cards and I would like to be able to run two different systems one on each. How can I select which GPU to run.

Thanks

User avatar
Christopher Bruns
Posts: 32
Joined: Thu Apr 07, 2005 1:10 pm

RE: Selecting which GPU to run a simulation

Post by Christopher Bruns » Wed Mar 03, 2010 4:26 pm

Depending on what operating system you are using, it might be possible to run two Zephyr simulations on two different GPUs.

Try launching two instances of Zephyr from two different shells. Before launching Zephyr, set the environment variable OPENMM_PLATFORM differently in each shell. Set one OPENMM_PLATFORM variable to "Cuda;CudaDevice=0" and the other to "Cuda;CudaDevice=1".

User avatar
Luis Fernandes
Posts: 4
Joined: Wed Mar 03, 2010 6:36 am

RE: Selecting which GPU to run a simulation

Post by Luis Fernandes » Tue Mar 09, 2010 11:24 am

Thanks that did the trick.

User avatar
Christopher Bruns
Posts: 32
Joined: Thu Apr 07, 2005 1:10 pm

RE: Selecting which GPU to run a simulation

Post by Christopher Bruns » Tue Mar 09, 2010 11:28 am

Good news! Thanks for the report. I wasn't certain it would work. I am glad to hear that it does.

Could you please mention Luis what sort of computer you are using? (Windows, Mac, Linux?)

User avatar
Luis Fernandes
Posts: 4
Joined: Wed Mar 03, 2010 6:36 am

RE: Selecting which GPU to run a simulation

Post by Luis Fernandes » Tue Mar 09, 2010 11:31 am

On a Linux Machine Ubuntu 9.04 x86_64.

POST REPLY