Skip to content

Commit c13c860

Browse files
committed
refresh
1 parent 4a7c3e9 commit c13c860

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cuda_bindings/cuda/bindings/utils/_nvvm_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ def check_nvvm_compiler_options(options: Sequence[str]) -> bool:
7878
len(precheck_ir_bytes),
7979
"precheck.ll",
8080
)
81-
82-
nvvm.compile_program(program, len(options), options)
83-
except nvvm.nvvmError as e:
84-
if e.status == nvvm.Result.ERROR_INVALID_OPTION:
85-
return False
86-
raise
81+
try:
82+
nvvm.compile_program(program, len(options), options)
83+
except nvvm.nvvmError as e:
84+
if e.status == nvvm.Result.ERROR_INVALID_OPTION:
85+
return False
86+
raise
8787
finally:
8888
nvvm.destroy_program(program)
8989
return True

0 commit comments

Comments
 (0)