Skip to content

Use MKL's libiomp5 for SymSgdNative OpenMP on Linux x64 - #7927

Draft
matouskozak wants to merge 1 commit into
mainfrom
matouskozak-symsgd-shared-openmp
Draft

matouskozak wants to merge 1 commit into
mainfrom
matouskozak-symsgd-shared-openmp

Conversation

@matouskozak

@matouskozak matouskozak commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Fixes #6972. Related to #7925.

On linux-x64, libSymSgdNative.so needed two OpenMP runtimes: libiomp5.so (through libMklImports.so) and libomp.so.5. Azure Linux doesn't ship libomp.so.5, so SymSGD couldn't load there.

This change links SymSgdNative against a build-only libiomp5.so stub. Its OpenMP calls then resolve from the same libiomp5.so that MKL already loads. The stub isn't installed or packaged. Other platforms are unchanged.

Docs now list how to get libiomp5.so on Debian/Ubuntu and Azure Linux.

SymSgdNative on linux-x64 needed both libiomp5.so (via libMklImports) and libomp.so.5. Link it against a build-only libiomp5.so stub so its OpenMP imports resolve from the runtime MKL already loads.

Fixes #6972

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.85%. Comparing base (26f206c) to head (1571146).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7927   +/-   ##
=======================================
  Coverage   70.85%   70.85%           
=======================================
  Files        1420     1420           
  Lines      279991   279991           
  Branches    27594    27594           
=======================================
  Hits       198391   198391           
- Misses      73451    73452    +1     
+ Partials     8149     8148    -1     
Flag Coverage Δ
Debug 70.85% <ø> (ø)
production 64.30% <ø> (ø)
test 90.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SymSgdNative depends on libiomp and libiomp5 in linux-x64

1 participant