Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kernel_tuner/utils/nvcuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def cuda_error_check(error):
if error != nvrtc.nvrtcResult.NVRTC_SUCCESS:
_, desc = nvrtc.nvrtcGetErrorString(error)
raise RuntimeError(f"NVRTC error: {desc.decode()}")
elif isinstance(error, tuple) and len(error) > 0:
cuda_error_check(error[0])
else:
raise RuntimeError(f"unknown error type returned by CUDA: {error!r} (type: {type(error).__name__})")


def to_valid_nvrtc_gpu_arch_cc(compute_capability: str) -> str:
Expand Down