projects
/
platform
/
upstream
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de07845
)
Add missing caffe2_hip extension in setup.py
author
Junjie Bai
<bai@in.tum.de>
Thu, 13 Dec 2018 23:57:20 +0000
(15:57 -0800)
committer
Facebook Github Bot
<facebook-github-bot@users.noreply.github.com>
Thu, 13 Dec 2018 23:59:51 +0000
(15:59 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/15189
Reviewed By: orionr
Differential Revision:
D13457644
Pulled By: bddppq
fbshipit-source-id:
c2363e9b8fd21709b62777e5b2199f01ec1c65f8
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index
6f8323d
..
79ea3b7
100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-908,6
+908,12
@@
if USE_CUDA:
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,