Skip to content

Conversation

@xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Jun 17, 2020

Currently, even if USE_OPENMP is turned off, ATEN_THEADING can still use OpenMP. This commit fixes it.

Copy link
Contributor

@pbelevich pbelevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please rebase?

@xuhdev xuhdev force-pushed the aten-threading-openmp branch from edcbb13 to f308921 Compare June 23, 2020 17:55
@dr-ci
Copy link

dr-ci bot commented Jun 23, 2020

💊 CI failures summary and remediations

As of commit f874cf4 (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.

See how this bot performed.

This comment has been revised 3 times.

Currently, even if USE_OPENMP is turned off, ATEN_THEADING can still use OpenMP. This commit fixes it.
@xuhdev xuhdev force-pushed the aten-threading-openmp branch from f308921 to f874cf4 Compare June 23, 2020 19:29
@xuhdev xuhdev requested review from pbelevich and peterjc123 June 23, 2020 19:29
@xuhdev
Copy link
Collaborator Author

xuhdev commented Jun 24, 2020

@pytorchbot merge this please

@pytorchbot pytorchbot added the merge-this-please Was marked for merge with @pytorchbot merge this please label Jun 24, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pbelevich has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@pbelevich merged this pull request in 3ed96e4.

@pbelevich
Copy link
Contributor

@xuhdev I reverted it, because people complained that MacOS builds stopped working with the error message from this diff, I tested it myself and I confirm it:

CMake Warning at cmake/Dependencies.cmake:1022 (message):
  Not compiling with OpenMP.  Suppress this warning with -DUSE_OPENMP=OFF
...
-- Using ATen parallel backend: OMP
CMake Error at caffe2/CMakeLists.txt:26 (message):
  ATen is using OpenMP backend but USE_OPENMP is off.  Please either change
  ATEN_THREADING or turn on USE_OPENMP.

@xuhdev
Copy link
Collaborator Author

xuhdev commented Jun 25, 2020

Would the error be legitimate If ATen is using OpenMP and user intends to turn OpenMP off?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-this-please Was marked for merge with @pytorchbot merge this please Merged open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants