Include AT_PARALLEL_OPENMP/AT_PARALLEL_NATIVE/AT_PARALLEL_NATIVE_TBB to ATen/Config.h#39612
Include AT_PARALLEL_OPENMP/AT_PARALLEL_NATIVE/AT_PARALLEL_NATIVE_TBB to ATen/Config.h#39612pbelevich wants to merge 5 commits intogh/pbelevich/128/basefrom
Conversation
…to ATen/Config.h [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 981790c (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 9 times. |
…NATIVE_TBB to ATen/Config.h" Fixes #39471 [ghstack-poisoned]
aten/src/ATen/Config.h.in
Outdated
| #define AT_NNPACK_ENABLED() @AT_NNPACK_ENABLED@ | ||
| #define CAFFE2_STATIC_LINK_CUDA() @CAFFE2_STATIC_LINK_CUDA_INT@ | ||
| #define AT_BUILD_WITH_BLAS() @USE_BLAS@ | ||
| #ifndef AT_PARALLEL_OPENMP |
There was a problem hiding this comment.
There are files that include Config.h(maybe transitively) and files that don't. For all of them AT_PARALLEL_OPENMP is defined from command line and for those that include Config.h it's redefined there. In the second case warning about redefinition is shown and compilation fails until I guard it with #ifndef
There was a problem hiding this comment.
It seems better to just stop passing AT_PARALLEL_OPENMP from command line in this case...
…NATIVE_TBB to ATen/Config.h" Fixes #39471 Manually tested with https://github.com/pytorch/csprng [ghstack-poisoned]
|
You'll need to add same defines to |
…NATIVE_TBB to ATen/Config.h" Fixes #39471 Manually tested with https://github.com/pytorch/csprng [ghstack-poisoned]
|
@malfet yup, just did it, thanks! |
…NATIVE_TBB to ATen/Config.h" Fixes #39471 Manually tested with https://github.com/pytorch/csprng [ghstack-poisoned]
|
@pbelevich merged this pull request in 4c4b991. |
|
@pbelevich This PR is the only recent one I can see that has modified anything related to tbb, so in an abundance of caution I am reverting it. |
…L_NATIVE/AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 and #39881 Differential Revision: [D22050656](https://our.internmc.facebook.com/intern/diff/D22050656) [ghstack-poisoned]
…L_NATIVE/AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 and #39881 Differential Revision: [D22050656](https://our.internmc.facebook.com/intern/diff/D22050656) [ghstack-poisoned]
…AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 #39881 and #40045 Differential Revision: [D22076711](https://our.internmc.facebook.com/intern/diff/D22076711) [ghstack-poisoned]
…AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 #39881 and #40045 Differential Revision: [D22076711](https://our.internmc.facebook.com/intern/diff/D22076711) [ghstack-poisoned]
…AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 #39881 and #40045 Differential Revision: [D22076711](https://our.internmc.facebook.com/intern/diff/D22076711) [ghstack-poisoned]
…AT_PARALLEL_NATIVE_TBB to ATen/Config.h" Fixes #39471 Reland of #39612 #39881 and #40045 Differential Revision: [D22076711](https://our.internmc.facebook.com/intern/diff/D22076711) [ghstack-poisoned]
…_NATIVE_TBB to ATen/Config.h (#40211) Summary: Fixes #39471 Reland of #39612 #39881 #40045 #40122 Proof: [green TBB test](https://app.circleci.com/pipelines/github/pytorch/pytorch/182769/workflows/ae9f4f7a-791a-49df-9625-e2f0a51e70e7/jobs/5910591/steps) Pull Request resolved: #40211 Reviewed By: malfet Differential Revision: D22128537 Pulled By: pbelevich fbshipit-source-id: 98c589405daafc2c81f76e1d5c1aef5e57065351
…_PARALLEL_NATIVE_TBB to ATen/Config.h (pytorch#40045) Summary: Pull Request resolved: pytorch#40045 Fixes pytorch#39471 Reland of pytorch#39612 and pytorch#39881 Test Plan: Imported from OSS Differential Revision: D22050656 Pulled By: pbelevich fbshipit-source-id: 274bc0733c37ef6c87deb3344bb49ca9107e257b
…ARALLEL_NATIVE_TBB to ATen/Config.h (pytorch#40211) Summary: Fixes pytorch#39471 Reland of pytorch#39612 pytorch#39881 pytorch#40045 pytorch#40122 Proof: [green TBB test](https://app.circleci.com/pipelines/github/pytorch/pytorch/182769/workflows/ae9f4f7a-791a-49df-9625-e2f0a51e70e7/jobs/5910591/steps) Pull Request resolved: pytorch#40211 Reviewed By: malfet Differential Revision: D22128537 Pulled By: pbelevich fbshipit-source-id: 98c589405daafc2c81f76e1d5c1aef5e57065351
Fixes #39471
Manually tested with https://github.com/pytorch/csprng
Stack from ghstack:
Differential Revision: D21960728