-
When having multiple gpus, FastPathology seems to automatically choose the first gpu, even when it is not available (in use). It is possible to make it so that is will automatically choose the first available gpu? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I guess this happens because on the AICAN server we have 3 identical GPUs, and FAST might just take the first one, as all are of equal quality. Might be that FAST does not take into account GPU memory usage at the point of selection. Any comments, @smistad? |
Beta Was this translation helpful? Give feedback.
-
Since you are using NVIDIA GPUs, the simplest answer to this question is to use the CUDA_VISIBLE_DEVICES environment variable. If you want use the second GPU instead you can do so: This environment variable will simply hide the GPUs that are not listed. You can check which GPU is busy and idle on the server with the |
Beta Was this translation helpful? Give feedback.
Since you are using NVIDIA GPUs, the simplest answer to this question is to use the CUDA_VISIBLE_DEVICES environment variable.
Let say you want to use the first GPU, you can run FastPathology like so:
CUDA_VISIBLE_DEVICES="0" /opt/fastpathology/bin/fastpathology
If you want use the second GPU instead you can do so:
CUDA_VISIBLE_DEVICES="1" /opt/fastpathology/bin/fastpathology
This environment variable will simply hide the GPUs that are not listed.
You can check which GPU is busy and idle on the server with the
nvidia-smi
command.