Hi Gonzalo,
A couple things to note here. First, pmemd.cuda is already pretty smart
about what GPUs it will allocate. It will _not_ pick any GPU that's being
used, for instance. Furthermore, given multiple options, it will pick the
one with the most memory available.
If you still wish to exert control over which GPUs are used, use the
CUDA_VISIBLE_DEVICES environment variable.
You can find more details here: http://ambermd.org/gpus (where all of this
information can be found, too).
HTH,
Jason
On Thu, Nov 17, 2011 at 10:43 PM, Gonzalo Jimenez <gjimenez.chem.ucla.edu>wrote:
> Dear all,
>
> Following on this, I have found this information from the nvidia forums,
> but
> unfortunately, I cannot use nvidia-smi -c 1 in a script without root (or
> enough) permissions...
>
> Gonzalo
>
>
> ********************************************************************************************
> # Nvidia forum states nvidia-smi must be running continuously in the
> background for a GPU mode to stay "set"
> nvidia-smi -l -i 30 -lsa &
>
> # Now actually set the modes to exclusive use by one host thread per GPU...
> sudo nvidia-smi -g 0 -c 1
> sudo nvidia-smi -g 1 -c 1
> sudo nvidia-smi -g 2 -c 1
> sudo nvidia-smi -g 3 -c 1
>
> # Now list the compute modes we just set...
> nvidia-smi -g 0 -s
> nvidia-smi -g 1 -s
> nvidia-smi -g 2 -s
> nvidia-smi -g 3 -s
>
> -----Mensaje original-----
> From: Gonzalo Jimenez
> Sent: Thursday, November 17, 2011 7:14 PM
> To: amber.ambermd.org
> Subject: [AMBER] Select cuda ID device in PMEMD
>
> Dear all,
>
> Is there any chance to choose which cuda ID device to be used by
> PMEMD.cuda.MPI? This could be good to avoid competition between different
> jobs in the same node for the same GPUs.
>
> Thanks a lot,
>
> Gonzalo
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Nov 17 2011 - 21:00:03 PST