Skip to content

Commit 3ad56eb

Browse files
committed
Adds patch to build libgomp from sources
1 parent ad00588 commit 3ad56eb

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

ML-Frameworks/pytorch-aarch64/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ where `YY` is the year, and `MM` the month of the increment.
88
## [unreleased]
99

1010
### Added
11+
- WIP patch to build a newer version of libgomp from source - https://github.com/pytorch/pytorch/pull/152361
12+
Improve scaling for >16 threads.
1113

1214
### Changed
1315
- Updates hashes for:

ML-Frameworks/pytorch-aarch64/build-wheel.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ if ! docker container inspect $TORCH_BUILD_CONTAINER >/dev/null 2>&1 ; then
8686
docker exec -t $TORCH_BUILD_CONTAINER bash -c $PYTORCH_ROOT/.circleci/scripts/binary_populate_env.sh
8787
docker exec -t $TORCH_BUILD_CONTAINER bash -c "$PYTORCH_ROOT/.ci/aarch64_linux/aarch64_ci_setup.sh"
8888

89+
# Build a newer version of libgomp from source (see https://github.com/pytorch/pytorch/pull/152361)
90+
docker exec -t $TORCH_BUILD_CONTAINER bash -c "bash $PYTORCH_ROOT/.ci/docker/common/install_libgomp.sh"
91+
8992
# This must be in this if block because it cannot handle being called twice
9093
docker exec -t $TORCH_BUILD_CONTAINER bash -c "bash $UTILS/build_openblas.sh"
9194

ML-Frameworks/pytorch-aarch64/get-source.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ git-shallow-clone https://github.com/pytorch/pytorch.git $PYTORCH_HASH
3333
apply-github-patch pytorch/pytorch 143190 6e5628b1f648d862e8fdd150ad277120b236ed15 # Enable AArch64 CI scripts to be used for local dev
3434
apply-github-patch pytorch/pytorch 140159 ca4a718be80eb88ca6804b91201e4f98a3e236c8 # cpu: enable gemm-bf16f32 for SDPA BF16
3535
apply-github-patch pytorch/pytorch 140159 406fe1fbd066401774c104d125a7ac0b3d6eb52b
36+
apply-github-patch pytorch/pytorch 152361 7c54b6b07558c330ee2f95b4793edb3bfbb814c9 # Build libgomp (gcc-11) from source
3637
apply-github-patch pytorch/pytorch 150833 02987a7c2e9b249a669723224c8d3cd80c6cb64e # Pin all root requirements to major versions
3738

3839
git submodule sync

0 commit comments

Comments
 (0)