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
apex
Commits
a3ffb8a7
Commit
a3ffb8a7
authored
Mar 23, 2020
by
Kexin Yu
Browse files
add l2norm source for FusedLAMB
parent
04927b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup.py
setup.py
+2
-1
No files found.
setup.py
View file @
a3ffb8a7
...
@@ -211,7 +211,8 @@ if "--deprecated_fused_lamb" in sys.argv:
...
@@ -211,7 +211,8 @@ if "--deprecated_fused_lamb" in sys.argv:
ext_modules
.
append
(
ext_modules
.
append
(
CUDAExtension
(
name
=
'fused_lamb_cuda'
,
CUDAExtension
(
name
=
'fused_lamb_cuda'
,
sources
=
[
'apex/contrib/csrc/optimizers/fused_lamb_cuda.cpp'
,
sources
=
[
'apex/contrib/csrc/optimizers/fused_lamb_cuda.cpp'
,
'apex/contrib/csrc/optimizers/fused_lamb_cuda_kernel.cu'
],
'apex/contrib/csrc/optimizers/fused_lamb_cuda_kernel.cu'
,
'csrc/multi_tensor_l2norm_kernel.cu'
],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
,]
+
version_dependent_macros
,
extra_compile_args
=
{
'cxx'
:
[
'-O3'
,]
+
version_dependent_macros
,
'nvcc'
:[
'-O3'
,
'nvcc'
:[
'-O3'
,
...
...
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