uni-halle / gerbil

A fast and memory-efficient k-mer counter with GPU-support
MIT License
34 stars 14 forks source link

About specifying GPU to run software gerbil #23

Open lkiko opened 2 years ago

lkiko commented 2 years ago

If my device has more than two Gpus and I want to specify software gerbil to run on one GPU, how do I set the parameters?

srechner commented 2 years ago

Gerbil will automatically use all CUDA capable GPUs it detects on the system. It has no option to specify which GPUs to use.

However, you should be able to hide GPUs from gerbil by specifying the CUDA_VISIBLE_DEVICES environment variable. Look here: https://stackoverflow.com/questions/39649102/how-do-i-select-which-gpu-to-run-a-job-on

lkiko commented 2 years ago

Thank you for your advice, very applicable.