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

OS X libomp CI fix. #5771

Merged
merged 4 commits into from
Apr 28, 2021
Merged

OS X libomp CI fix. #5771

merged 4 commits into from
Apr 28, 2021

Conversation

michaelgsharp
Copy link
Member

@michaelgsharp michaelgsharp commented Apr 28, 2021

Fixed the CI issue with libomp.

The issue is that version 7 of libomp doesn't have a bottle for Big Sur. The build machines must have just upgraded to it. If I tell it to build from source it is able to successfully build version 7, and when the tests run they are able to find the intel mkl library as well as pass all the tests. Version 7 of libomp seems to be linked with intel mkl somehow and thats why we need to keep using version 7.0.0 for now.

@michaelgsharp michaelgsharp changed the title mac os libomp testing OSx libomp CI fix. Apr 28, 2021
@michaelgsharp michaelgsharp self-assigned this Apr 28, 2021
@michaelgsharp michaelgsharp marked this pull request as ready for review April 28, 2021 04:23
@michaelgsharp michaelgsharp changed the title OSx libomp CI fix. OS X libomp CI fix. Apr 28, 2021
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #5771 (fb26308) into main (ebc431f) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5771      +/-   ##
==========================================
- Coverage   68.38%   68.32%   -0.07%     
==========================================
  Files        1131     1131              
  Lines      241019   241019              
  Branches    25024    25024              
==========================================
- Hits       164822   164669     -153     
- Misses      69714    69846     +132     
- Partials     6483     6504      +21     
Flag Coverage Δ
Debug 68.32% <ø> (-0.07%) ⬇️
production 62.95% <ø> (-0.08%) ⬇️
test 89.19% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...osoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs 83.60% <0.00%> (-7.16%) ⬇️
src/Microsoft.ML.FastTree/Training/StepSearch.cs 57.42% <0.00%> (-4.96%) ⬇️
src/Microsoft.ML.Data/Training/TrainerUtils.cs 65.86% <0.00%> (-3.82%) ⬇️
...est/Microsoft.ML.Core.Tests/UnitTests/TestHosts.cs 96.55% <0.00%> (-3.45%) ⬇️
....ML.AutoML/PipelineSuggesters/PipelineSuggester.cs 81.88% <0.00%> (-3.15%) ⬇️
...crosoft.ML.StandardTrainers/Standard/SdcaBinary.cs 85.49% <0.00%> (-3.08%) ⬇️
...rosoft.ML.AutoML/ColumnInference/TextFileSample.cs 59.60% <0.00%> (-2.65%) ⬇️
src/Microsoft.ML.Sweeper/AsyncSweeper.cs 71.42% <0.00%> (-1.37%) ⬇️
...crosoft.ML.StandardTrainers/Optimizer/Optimizer.cs 71.96% <0.00%> (-1.16%) ⬇️
...oft.ML.StandardTrainers/Standard/SdcaMulticlass.cs 91.46% <0.00%> (-1.03%) ⬇️
... and 6 more

@michaelgsharp michaelgsharp merged commit d8fe817 into dotnet:main Apr 28, 2021
@@ -56,3 +56,5 @@ $ brew update && brew install cmake https://raw.githubusercontent.com/dotnet/mac
```

Please note that newer versions of Homebrew [don't allow installing directly from a URL](https://github.com/Homebrew/brew/issues/8791). If you run into this issue, you may need to download libomp.rb first and install it with the local file instead.

Also, libomp version 7.0.0 doesn't have a cask for Big Sur. You can work around this by downloading the libomp.rb file and then calling `brew install libomp.rb --build-from-source --formula`.
Copy link
Member

Choose a reason for hiding this comment

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

Presumably people will already have cloned the repo, so they can use that file rather than download it. Maybe we could even move the install steps to a bash script that's checked in and just tell folks to invoke that? Maybe make the CI process do the same?

Copy link
Member Author

Choose a reason for hiding this comment

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

This step is only needed for Big Sur, the other versions of the OS work fine, Do we know the percentage of mac users on Big Sur compared to older versions? If its the majority I think that would be worth looking into.

@michaelgsharp michaelgsharp deleted the libomp-testing branch July 15, 2021 19:16
@ghost ghost locked as resolved and limited conversation to collaborators Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants