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
deepspeed
Commits
26e5ecab
Unverified
Commit
26e5ecab
authored
Jan 31, 2020
by
Jeff Rasley
Committed by
GitHub
Jan 31, 2020
Browse files
Initial commit of setup
parent
b8301c2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
setup.py
setup.py
+48
-0
No files found.
setup.py
0 → 100644
View file @
26e5ecab
"""
Copyright 2020 The Microsoft DeepSpeed Team
DeepSpeed library
Create a new wheel via the following command: python setup.py bdist_wheel
The wheel will be located at: dist/*.whl
"""
import
torch
from
setuptools
import
setup
,
find_packages
from
torch.utils.cpp_extension
import
CUDAExtension
,
BuildExtension
cmdclass
=
{}
ext_modules
=
[]
cmdclass
[
'build_ext'
]
=
BuildExtension
ext_modules
.
append
(
CUDAExtension
(
name
=
'fused_lamb_cuda'
,
sources
=
[
'csrc/fused_lamb_cuda.cpp'
,
'csrc/fused_lamb_cuda_kernel.cu'
],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
,
],
'nvcc'
:
[
'-O3'
,
'--use_fast_math'
]
}))
setup
(
name
=
'deepspeed'
,
version
=
'0.1'
,
description
=
'DeepSpeed library'
,
author
=
'DeepSpeed Team'
,
author_email
=
'deepspeed@microsoft.com'
,
url
=
'http://aka.ms/deepspeed'
,
packages
=
find_packages
(
exclude
=
[
"docker"
,
"third_party"
,
"csrc"
]),
scripts
=
[
'bin/deepspeed'
,
'bin/ds'
],
classifiers
=
[
'Programming Language :: Python :: 3.6'
],
ext_modules
=
ext_modules
,
cmdclass
=
cmdclass
)
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