We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef657a commit 7cdcb93Copy full SHA for 7cdcb93
1 file changed
everTale/app/main.py
@@ -20,3 +20,13 @@
20
@app.get("/")
21
def root():
22
return {"message": "EverTale AI 서버가 정상 실행 중입니다."}
23
+
24
+@app.get("/debug/cuda")
25
+def cuda_health():
26
+ import torch, os
27
+ return {
28
+ "cuda_available": torch.cuda.is_available(),
29
+ "device_count": torch.cuda.device_count(),
30
+ "current_device": torch.cuda.current_device() if torch.cuda.is_available() else None,
31
+ "visible_devices": os.getenv("NVIDIA_VISIBLE_DEVICES", "")
32
+ }
0 commit comments