Skip to content

Commit 75f82a3

Browse files
committed
Add numpy version check in examples/thread_block_cluster.py
1 parent 0a78eb2 commit 75f82a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cuda_core/examples/thread_block_cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
ProgramOptions,
2222
launch,
2323
)
24-
from packaging import version
2524

26-
if version.parse(np.__version__) < version.parse("2.2.5"):
25+
if np.lib.NumpyVersion(np.__version__) < "2.2.5":
2726
print("This example requires NumPy 2.2.5 or later", file=sys.stderr)
2827
sys.exit(0)
2928

0 commit comments

Comments
 (0)