Skip to content

Commit

Permalink
Properly check whether a string is alphanumeric (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco authored Feb 28, 2024
1 parent f8187c4 commit 69267db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/test/utils/libcudacxx/test/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def configure_compile_flags(self):

# With Hopper there are new subarchitectures like 90a we need to handle those
subarchitecture = ''
if not isinstance(arch, int):
if not arch.isnumeric():
subarchitecture = arch[-1]
arch = arch[:-1]
arch = int(arch)
Expand Down

0 comments on commit 69267db

Please sign in to comment.