Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
daf59ff7
Unverified
Commit
daf59ff7
authored
Apr 27, 2022
by
ver217
Committed by
GitHub
Apr 27, 2022
Browse files
[setup] add local version label (#890)
parent
1d0aba41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
setup.py
setup.py
+6
-1
No files found.
setup.py
View file @
daf59ff7
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment