Skip to content

Commit 35d48e6

Browse files
authored
Add executorch-ubuntu-24.04-gcc14 docker image (pytorch#19521)
### Summary Simply add a docker build image based on ubuntu 24.04 with gcc 14. It's necessary for XNNPACK on riscv64 to have a newer toolchain, to support the latest features of the hardware (vectorization with RVV).
1 parent 739606e commit 35d48e6

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.ci/docker/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ case "${IMAGE_NAME}" in
8484
CUDA_VERSION=12.8
8585
SKIP_PYTORCH=yes
8686
;;
87+
executorch-ubuntu-24.04-gcc14)
88+
LINTRUNNER=""
89+
OS_VERSION=24.04
90+
GCC_VERSION=14
91+
;;
8792
*)
8893
echo "Invalid image name ${IMAGE_NAME}"
8994
exit 1

.ci/docker/common/install_user.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
set -ex
99

10+
# On Ubuntu 24.04, there is a `ubuntu` user with id=1000
11+
if id ubuntu >/dev/null && [[ "$(id -u ubuntu)" == 1000 ]]; then
12+
sudo userdel --remove ubuntu;
13+
fi
14+
1015
# Same as ec2-user
1116
echo "ci-user:x:1000:1000::/var/lib/ci-user:" >> /etc/passwd
1217
echo "ci-user:x:1000:" >> /etc/group

.github/workflows/docker-builds.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
executorch-ubuntu-22.04-zephyr-sdk,
4242
executorch-ubuntu-22.04-qnn-sdk,
4343
executorch-ubuntu-22.04-mediatek-sdk,
44-
executorch-ubuntu-22.04-clang12-android
44+
executorch-ubuntu-22.04-clang12-android,
45+
executorch-ubuntu-24.04-gcc14,
4546
]
4647
include:
4748
- docker-image-name: executorch-ubuntu-22.04-gcc11-aarch64

0 commit comments

Comments
 (0)