mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-04-27 19:36:13 +00:00
[setup] add local version label (#890)
This commit is contained in:
parent
1d0aba4153
commit
daf59ff72e
7
setup.py
7
setup.py
@ -94,7 +94,12 @@ def fetch_readme():
|
||||
|
||||
def get_version():
|
||||
with open('version.txt') as f:
|
||||
return f.read().strip()
|
||||
version = f.read().strip()
|
||||
if build_cuda_ext:
|
||||
torch_version = ''.join(torch.__version__.split('.')[:2])
|
||||
cuda_version = ''.join(get_cuda_bare_metal_version(CUDA_HOME)[1:])
|
||||
version += f'+torch{torch_version}cu{cuda_version}'
|
||||
return version
|
||||
|
||||
|
||||
if build_cuda_ext:
|
||||
|
Loading…
Reference in New Issue
Block a user