Last active
February 8, 2021 17:47
-
-
Save berceanu/8c70962a8c981ddf9e259135fbab294d to your computer and use it in GitHub Desktop.
Example usage of numba for getting GPU UUID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numba import cuda | |
with cuda.gpus[0]: | |
dev = cuda.get_current_device() | |
print(dev.uuid) | |
with cuda.gpus[1]: | |
dev = cuda.get_current_device() | |
print(dev.uuid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment