Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

aarch64: cd: switch from libomp to libgomp #1805

Merged
merged 1 commit into from
May 8, 2024

Conversation

snadampal
Copy link
Contributor

In the current version of the CD scripts, torch libraries are linked to llvm openmp because conda openblas-openmp is linked to it. To switch to gnu libgomp, we are building the openblas from sources instead of installing from conda.
Building openBLAS shared library instead of static library to be able to discover LAPACK support in OpenBLAS.

fixes #1774
cherrypicked #1803

In the current version of the CD scripts, torch libraries are
linked to llvm openmp because conda openblas-openmp is linked to it.
To switch to gnu libgomp, we are building the openblas from sources
instead of installing from conda.
Building openBLAS shared library instead of static library to
be able to discover LAPACK support in OpenBLAS.

cherrypicked from pytorch#1803
fixes: pytorch#1774
@snadampal
Copy link
Contributor Author

this is to fix the issue in PyTorch 2.3.x release.
cc: @malfet , @atalman

@snadampal
Copy link
Contributor Author

This PR also fixes: pytorch/pytorch#124922

@atalman atalman merged commit ba10bae into pytorch:release/2.3 May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants