Skip to content

Commit 8430e8e

Browse files
committed
bug-fix
1 parent 61a7174 commit 8430e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cuda_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_cuda_arch(cuda_ver):
7878
arch = "50"
7979
if cuda_ver == 110:
8080
arch = "52"
81-
if cuda_ver == "111":
81+
if cuda_ver == 111:
8282
arch = "80"
8383
return arch
8484

@@ -120,7 +120,7 @@ def locate_cuda():
120120
'lib64': os.path.join(home, 'lib64')}
121121
cuda_ver = os.path.basename(os.path.realpath(home)).split("-")[1].split(".")
122122
cuda_ver = 10 * int(cuda_ver[0]) + int(cuda_ver[1])
123-
assert cuda_ver >= 700, f"too low cuda ver {cuda_ver}"
123+
assert cuda_ver >= 70, f"too low cuda ver {cuda_ver}"
124124
logging.info("cuda_ver: %s", cuda_ver)
125125
arch = get_cuda_arch(cuda_ver)
126126
sm_list = get_cuda_sm_list(cuda_ver)

0 commit comments

Comments
 (0)