Page 1 of 1

Selecting which GPU to run a simulation

Posted: Wed Mar 03, 2010 3:52 pm
by lpfernandes
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

RE: Selecting which GPU to run a simulation

Posted: Wed Mar 03, 2010 4:26 pm
by cmbruns
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".

RE: Selecting which GPU to run a simulation

Posted: Tue Mar 09, 2010 11:24 am
by lpfernandes
Thanks that did the trick.

RE: Selecting which GPU to run a simulation

Posted: Tue Mar 09, 2010 11:28 am
by cmbruns
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?)

RE: Selecting which GPU to run a simulation

Posted: Tue Mar 09, 2010 11:31 am
by lpfernandes
On a Linux Machine Ubuntu 9.04 x86_64.