Skip to content

Commit a7ef552

Browse files
committed
refresh
1 parent 10943c8 commit a7ef552

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cuda_bindings/cuda/bindings/utils/_nvvm_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2026-2027 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4+
import contextlib
45
from typing import Sequence
56

67
_PRECHECK_NVVM_IR = """target triple = "nvptx64-unknown-cuda"
@@ -87,8 +88,6 @@ def check_nvvm_options(options: Sequence[bytes]) -> bool:
8788
return False
8889
finally:
8990
if program is not None:
90-
try:
91+
with contextlib.suppress(Exception):
9192
nvvm.destroy_program(program)
92-
except Exception:
93-
pass
9493
return True

0 commit comments

Comments
 (0)