Merge branch 'main' into wgrad-gemm

This commit is contained in:
Zhean Xu
2025-05-09 12:30:13 +08:00
21 changed files with 1091 additions and 822 deletions

View File

@@ -1,3 +1,8 @@
# PyTorch has its own NVRTC, which may have a lower version than the system
# So try to disable PyTorch's NVRTC, or import NVRTC before PyTorch
import cuda.bindings.nvrtc as nvrtc
print(f'NVRTC version: {nvrtc.nvrtcVersion()[1:]}')
import random
import torch
from typing import List, Tuple