Several fixes

This commit is contained in:
Chenggang Zhao
2025-05-07 09:57:39 +08:00
parent 317e83581d
commit 83f6e9537e
4 changed files with 30 additions and 11 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 Tuple