Skip to content

Commit

Permalink
Add missing caffe2_hip extension in setup.py
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#15189

Reviewed By: orionr

Differential Revision: D13457644

Pulled By: bddppq

fbshipit-source-id: c2363e9b8fd21709b62777e5b2199f01ec1c65f8
  • Loading branch information
bddppq authored and facebook-github-bot committed Dec 13, 2018
1 parent de07845 commit bdfff2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,12 @@ def make_relative_rpath(path):
name=str('caffe2.python.caffe2_pybind11_state_gpu'),
sources=[]),
)
if USE_ROCM:
extensions.append(
Extension(
name=str('caffe2.python.caffe2_pybind11_state_hip'),
sources=[]),
)

cmdclass = {
'create_version_file': create_version_file,
Expand Down

0 comments on commit bdfff2f

Please sign in to comment.