Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Dec 5, 2024
1 parent e4e9dfa commit d6d07e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/kvikio/kvikio/cufile_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def libcufile_version() -> Tuple[int, int]:
The version as a tuple (MAJOR, MINOR).
"""
v = cufile_driver.libcufile_version()
# Convert the integer version like 1080 to (1, 8).
major, minor = divmod(v, 1000)
minor //= 10
return (major, minor)
return (major, minor // 10)


def driver_open() -> None:
Expand Down

0 comments on commit d6d07e4

Please sign in to comment.