Commit 38cf5b7a authored by Eli Uriegas's avatar Eli Uriegas Committed by Facebook GitHub Bot
Browse files

ci: Install libomp on macos (#2404)

Summary:
To resolve nightly / general build issues relating to OpenMP not being found, see https://hud.pytorch.org/pytorch/audio/commit/c6a376cc5679c1940e49fc3e0ba22eaead6c2467



```
-- Found Torch: /Users/distiller/miniconda3/envs/env3.10/lib/python3.10/site-packages/torch/lib/libtorch.dylib
CMake Error at /Users/distiller/miniconda3/envs/env3.10/lib/python3.10/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Call Stack (most recent call first):
  /Users/distiller/miniconda3/envs/env3.10/lib/python3.10/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /Users/distiller/miniconda3/envs/env3.10/lib/python3.10/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.22/Modules/FindOpenMP.cmake:544 (find_package_handle_standard_args)
  CMakeLists.txt:131 (find_package)

-- Configuring incomplete, errors occurred!
```
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>

Pull Request resolved: https://github.com/pytorch/audio/pull/2404

Reviewed By: atalman

Differential Revision: D36495791

Pulled By: seemethere

fbshipit-source-id: 7b6fa2a62fda6fc468cfcbdf8d2163e6b9c327b0
parent eed57534
......@@ -53,6 +53,13 @@ commands:
name: Install CUDA
command: |
packaging/windows/internal/cuda_install.bat
macos_install_dependencies:
description: "Install ci dependencies for macOS"
steps:
- run:
name: Install ci dependencies
command: |
brew install libomp
binary_common: &binary_common
parameters:
......@@ -292,6 +299,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- run:
......@@ -320,6 +328,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- run:
......@@ -756,6 +765,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- designate_upload_channel
......
......@@ -53,6 +53,13 @@ commands:
name: Install CUDA
command: |
packaging/windows/internal/cuda_install.bat
macos_install_dependencies:
description: "Install ci dependencies for macOS"
steps:
- run:
name: Install ci dependencies
command: |
brew install libomp
binary_common: &binary_common
parameters:
......@@ -292,6 +299,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- run:
......@@ -320,6 +328,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- run:
......@@ -756,6 +765,7 @@ jobs:
steps:
- checkout
- load_conda_channel_flags
- macos_install_dependencies
- attach_workspace:
at: third_party
- designate_upload_channel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment