Skip to content

Commit

Permalink
use Ralfs logic for ptx check
Browse files Browse the repository at this point in the history
  • Loading branch information
ksimpson-work committed Dec 10, 2024
1 parent d0d528b commit a2555f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda_core/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def clean_up_cffi_files():
def can_load_generated_ptx():
_, driver_ver = driver.cuDriverGetVersion()
_, nvrtc_major, nvrtc_minor = nvrtc.nvrtcVersion()
return not (nvrtc_major * 1000 + nvrtc_minor * 10 > driver_ver)
return nvrtc_major * 1000 + nvrtc_minor * 10 <= driver_ver

0 comments on commit a2555f9

Please sign in to comment.