This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/Scripts and Tests/gpu_test.py
T
2026-08-20 00:45:43 +02:00

8 lines
172 B
Python

import torch
print("CUDA:", torch.cuda.is_available())
t = torch.randn(4, 4, device="cuda")
print("GPU tensor:", t.shape)
r = t @ t.T
print("matmul:", r.shape)
print("OK")