split gpuctl
This commit is contained in:
18
ssh/scripts/gpu.sh
Normal file
18
ssh/scripts/gpu.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
show_gpu() {
|
||||
cd "$PROJECT_DIR"
|
||||
|
||||
echo "GPU status:"
|
||||
echo
|
||||
|
||||
docker compose \
|
||||
-f "$COMPOSE_FILE" \
|
||||
--profile test \
|
||||
run \
|
||||
--rm \
|
||||
gpu-test \
|
||||
nvidia-smi \
|
||||
--query-gpu=index,name,utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw \
|
||||
--format=csv
|
||||
}
|
||||
Reference in New Issue
Block a user