WaveCut's picture
Runtime v11: lookahead decode, ABC head crop, resident compiled VAE, KV handoff, INT8/W4A4 output heads; SM89 validated, SM120 built
9a2611f verified
Raw
History Blame Contribute Delete
451 Bytes
#!/usr/bin/env python3
import sys
try:
import torch
except ImportError:
print("Torch is required for configuring a kernel build.", file=sys.stderr)
sys.exit(1)
if torch.version.cuda is not None:
print("CUDA")
elif torch.version.hip is not None:
print("HIP")
elif torch.backends.mps.is_available():
print("METAL")
elif hasattr(torch.version, "xpu") and torch.version.xpu is not None:
print("SYCL")
else:
print("CPU")