get_best_gpu function

(Shortest import: from brian2cuda.utils.gputools import get_best_gpu)

brian2cuda.utils.gputools.get_best_gpu()[source]

Get the “best” GPU available. This currently chooses the GPU with highest compute capability and lowest GPU ID (as reported by nvidia-smi)