jetclustering / src /turn_on_cuda.py
gregorkrzmanc's picture
.
e75a247
raw
history blame
188 Bytes
import torch
def main():
print("CUDA is available?: ", torch.cuda.is_available())
print("CUDA device count:", torch.cuda.device_count())
if __name__ == "__main__":
main()