Drop support for deprecated CUDA architecture. (#7767)
* Drop support for deprecated CUDA architecture. * Check file size at release branch. * Use 200 MB limit Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
parent
4bd5a33b10
commit
4615fa51ef
@ -91,9 +91,9 @@ function(format_gencode_flags flags out)
|
|||||||
# Set up architecture flags
|
# Set up architecture flags
|
||||||
if(NOT flags)
|
if(NOT flags)
|
||||||
if (CUDA_VERSION VERSION_GREATER_EQUAL "11.1")
|
if (CUDA_VERSION VERSION_GREATER_EQUAL "11.1")
|
||||||
set(flags "50;52;60;61;70;75;80;86")
|
set(flags "52;60;61;70;75;80;86")
|
||||||
elseif (CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
|
elseif (CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
|
||||||
set(flags "35;50;52;60;61;70;75;80")
|
set(flags "52;60;61;70;75;80")
|
||||||
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "10.0")
|
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "10.0")
|
||||||
set(flags "35;50;52;60;61;70;75")
|
set(flags "35;50;52;60;61;70;75")
|
||||||
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "9.0")
|
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "9.0")
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def cd(path):
|
def cd(path):
|
||||||
path = os.path.normpath(path)
|
path = os.path.normpath(path)
|
||||||
@ -13,10 +14,12 @@ def cd(path):
|
|||||||
finally:
|
finally:
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) != 4:
|
if len(sys.argv) != 4:
|
||||||
print('Usage: {} [wheel to rename] [commit id] [platform tag]'.format(sys.argv[0]))
|
print('Usage: {} [wheel to rename] [commit id] [platform tag]'.format(sys.argv[0]))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
whl_path = sys.argv[1]
|
whl_path = sys.argv[1]
|
||||||
commit_id = sys.argv[2]
|
commit_id = sys.argv[2]
|
||||||
platform_tag = sys.argv[3]
|
platform_tag = sys.argv[3]
|
||||||
@ -36,3 +39,7 @@ with cd(dirname):
|
|||||||
if os.path.isfile(new_name):
|
if os.path.isfile(new_name):
|
||||||
os.remove(new_name)
|
os.remove(new_name)
|
||||||
os.rename(basename, new_name)
|
os.rename(basename, new_name)
|
||||||
|
|
||||||
|
filesize = os.path.getsize(new_name) / 1024 / 1024 # MB
|
||||||
|
msg = f"Limit of wheel size set by PyPI is exceeded. {new_name}: {filesize}"
|
||||||
|
assert filesize <= 200, msg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user