Skip to content
Snippets Groups Projects
checkgpu 182 B
#!/bin/bash

cd /app/MaggotUBA && poetry run python -c "
import torch

if torch.cuda.is_available():
    print(torch.cuda.list_gpu_processes())
else:
    print('cuda unavailable')
"