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
vision
Commits
20d90dfc
Unverified
Commit
20d90dfc
authored
May 11, 2023
by
Paul Mulders
Committed by
GitHub
May 10, 2023
Browse files
setup.py: fix ROCm build (#7573)
parent
078959f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
setup.py
setup.py
+7
-1
No files found.
setup.py
View file @
20d90dfc
...
@@ -328,9 +328,15 @@ def get_extensions():
...
@@ -328,9 +328,15 @@ def get_extensions():
image_src
=
(
image_src
=
(
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"*.cpp"
))
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"*.cpp"
))
+
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"cpu"
,
"*.cpp"
))
+
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"cpu"
,
"*.cpp"
))
+
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"cuda"
,
"*.cpp"
))
)
)
if
is_rocm_pytorch
:
image_src
+=
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"hip"
,
"*.cpp"
))
# we need to exclude this in favor of the hipified source
image_src
.
remove
(
os
.
path
.
join
(
image_path
,
"image.cpp"
))
else
:
image_src
+=
glob
.
glob
(
os
.
path
.
join
(
image_path
,
"cuda"
,
"*.cpp"
))
if
use_png
or
use_jpeg
:
if
use_png
or
use_jpeg
:
ext_modules
.
append
(
ext_modules
.
append
(
extension
(
extension
(
...
...
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