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
888e72ad
Commit
888e72ad
authored
Sep 01, 2021
by
Jeff Daily
Browse files
work around hipify not finding headers
parent
02ada95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
setup.py
setup.py
+4
-0
No files found.
setup.py
View file @
888e72ad
...
...
@@ -203,6 +203,7 @@ if "--cuda_ext" in sys.argv:
'csrc/multi_tensor_adagrad.cu'
,
'csrc/multi_tensor_novograd.cu'
,
'csrc/multi_tensor_lamb.cu'
],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
]
+
version_dependent_macros
,
'nvcc'
:
nvcc_args_multi_tensor
if
not
IS_ROCM_PYTORCH
else
hipcc_args_multi_tensor
}))
...
...
@@ -211,6 +212,7 @@ if "--cuda_ext" in sys.argv:
CUDAExtension
(
name
=
'syncbn'
,
sources
=
[
'csrc/syncbn.cpp'
,
'csrc/welford.cu'
],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
]
+
version_dependent_macros
,
'nvcc'
:[
'-O3'
]
+
version_dependent_macros
}))
...
...
@@ -221,6 +223,7 @@ if "--cuda_ext" in sys.argv:
CUDAExtension
(
name
=
'fused_layer_norm_cuda'
,
sources
=
[
'csrc/layer_norm_cuda.cpp'
,
'csrc/layer_norm_cuda_kernel.cu'
],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
]
+
version_dependent_macros
,
'nvcc'
:
nvcc_args_layer_norm
if
not
IS_ROCM_PYTORCH
else
hipcc_args_layer_norm
}))
...
...
@@ -229,6 +232,7 @@ if "--cuda_ext" in sys.argv:
CUDAExtension
(
name
=
'mlp_cuda'
,
sources
=
[
'csrc/mlp.cpp'
,
'csrc/mlp_cuda.cu'
],
include_dirs
=
[
os
.
path
.
join
(
this_dir
,
'csrc'
)],
extra_compile_args
=
{
'cxx'
:
[
'-O3'
]
+
version_dependent_macros
,
'nvcc'
:[
'-O3'
]
+
version_dependent_macros
}))
...
...
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