From d6d07e43f43b4607470182cde8ce0276e1f28942 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Thu, 5 Dec 2024 08:16:41 +0100 Subject: [PATCH] cleanup --- python/kvikio/kvikio/cufile_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/kvikio/kvikio/cufile_driver.py b/python/kvikio/kvikio/cufile_driver.py index 8aa52b4585..fb32be347a 100644 --- a/python/kvikio/kvikio/cufile_driver.py +++ b/python/kvikio/kvikio/cufile_driver.py @@ -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: