Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable OpenMP on mac #2431

Closed
wants to merge 6 commits into from
Closed

Disable OpenMP on mac #2431

wants to merge 6 commits into from

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Jun 1, 2022

A couple of weeks ago we started to see OpenMP not found error on macOS CI.
From #2404, we install OpenMP from brew, and build passes, but unit tests are seg-faulting ever since.

https://app.circleci.com/pipelines/github/pytorch/audio/10825/workflows/c0ecae99-d409-4df2-ab91-9bcb126c309d/jobs/671518

The failing test uses torchaudio.functional.filitfilt, which uses OpenMP for parallel execution.

This commit reverts #2404 and disables OpenMP for macOS builds and tests.

mthrok added 3 commits June 1, 2022 08:33
This reverts commit 38cf5b7.

The solution of libomp from brew is most likely causing the segfault.
@facebook-github-bot
Copy link
Contributor

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

@mthrok mthrok marked this pull request as ready for review June 1, 2022 18:28
@mthrok mthrok requested a review from atalman June 1, 2022 18:29
Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Hey @mthrok.
You merged this PR, but labels were not properly added. Please add a primary and secondary label (See https://github.com/pytorch/audio/blob/main/.github/process_commit.py)

@mthrok mthrok added the other label Jun 1, 2022
@mthrok mthrok deleted the disable-omp-on-mac branch June 1, 2022 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants