We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a7c3e9 commit c13c860Copy full SHA for c13c860
cuda_bindings/cuda/bindings/utils/_nvvm_utils.py
@@ -78,12 +78,12 @@ def check_nvvm_compiler_options(options: Sequence[str]) -> bool:
78
len(precheck_ir_bytes),
79
"precheck.ll",
80
)
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
+ try:
+ nvvm.compile_program(program, len(options), options)
+ except nvvm.nvvmError as e:
+ if e.status == nvvm.Result.ERROR_INVALID_OPTION:
+ return False
+ raise
87
finally:
88
nvvm.destroy_program(program)
89
return True
0 commit comments