Skip to content

multi-gpu selection #84

Answered by smistad
mhoibo asked this question in Q&A
Aug 22, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@andreped
Comment options

@smistad
Comment options

@andreped
Comment options

Answer selected by andreped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants