Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

384 B
Raw Blame
"""Check a real CUDA kernel in the running standalone ComfyUI container."""

import torch

if not torch.cuda.is_available():
    raise SystemExit("CUDA is unavailable inside standalone ComfyUI")

result = torch.ones(8, device="cuda").sum().item()
if result != 8:
    raise SystemExit("CUDA kernel returned an unexpected result")

print(f"CUDA ready: {torch.cuda.get_device_name(0)}")