Skip to content

Ephemeral first success setup #4

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

Open
wants to merge 173 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
4e170a0
ppc64le yml file
sandeepgupta12 Oct 30, 2024
8a8bfeb
ppc64le yml dockefile
sandeepgupta12 Nov 3, 2024
7b97e0f
updated dockerfile
sandeepgupta12 Nov 3, 2024
fa664a0
updated dockerfile
sandeepgupta12 Nov 3, 2024
d1ada97
updated dockerfile
sandeepgupta12 Nov 3, 2024
a277fa8
updated dockerfile
sandeepgupta12 Nov 4, 2024
ddf0d4d
updated dockerfile
sandeepgupta12 Nov 4, 2024
a2de33c
updated dockerfile
sandeepgupta12 Nov 4, 2024
8271b67
updated dockerfile
sandeepgupta12 Nov 4, 2024
747e75b
updated dockerfile
sandeepgupta12 Nov 4, 2024
71bd31c
updated dockerfile
sandeepgupta12 Nov 4, 2024
a4c4306
updated dockerfile
sandeepgupta12 Nov 4, 2024
76b1f6f
updated dockerfile
sandeepgupta12 Nov 4, 2024
f9e99eb
updated dockerfile
sandeepgupta12 Nov 4, 2024
fdb58cf
updated dockerfile1
sandeepgupta12 Nov 4, 2024
60fb6be
updated dockerfile1
sandeepgupta12 Nov 4, 2024
ed34c5e
updated dockerfile1
sandeepgupta12 Nov 4, 2024
7ab2fa0
using manylinux
sandeepgupta12 Nov 5, 2024
ff6d77a
using manylinux1
sandeepgupta12 Nov 5, 2024
9ae59f5
using manylinux1
sandeepgupta12 Nov 5, 2024
9e3fd69
using manylinux1
sandeepgupta12 Nov 5, 2024
d7c5860
using dockerfile
sandeepgupta12 Nov 19, 2024
3f60cd3
using dockerfile
sandeepgupta12 Nov 20, 2024
9e05e3a
using dockerfile
sandeepgupta12 Nov 21, 2024
0bcefe2
using dockerfile
sandeepgupta12 Nov 21, 2024
f719ef3
using dockerfile1
sandeepgupta12 Nov 21, 2024
84ea6fe
using dockerfile1
sandeepgupta12 Nov 21, 2024
1f9f562
using dockerfile2
sandeepgupta12 Nov 21, 2024
c98bec5
using dockerfile2
sandeepgupta12 Nov 22, 2024
d9f3dd3
using dockerfile2
sandeepgupta12 Nov 24, 2024
b2f962a
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
0f2917b
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
1ebffc4
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
1d55cd7
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
7e34742
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
df9c662
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
740faa2
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
341788d
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
9b870b1
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
03f61f3
update selfhost runner logic
sandeepgupta12 Nov 25, 2024
eae19b0
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
623e56d
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
19f0e4a
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
e0f686b
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
81ac80c
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
8f90a1f
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
a6a9065
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
3523f07
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
9bd78ca
update selfhost runner logic1
sandeepgupta12 Nov 26, 2024
5ff3659
update selfhost runner logic1
sandeepgupta12 Nov 28, 2024
dbd5f08
update selfhost runner logic1
sandeepgupta12 Nov 28, 2024
2b6458b
update selfhost runner logic1
sandeepgupta12 Nov 28, 2024
d591367
update selfhost runner logic1
sandeepgupta12 Nov 28, 2024
825287d
update selfhost runner logic1
sandeepgupta12 Nov 29, 2024
2022671
added ppc64le in build.sh common file
sandeepgupta12 Dec 10, 2024
12fd073
added dockerfile
sandeepgupta12 Dec 10, 2024
bc76c16
added dockerfile
sandeepgupta12 Dec 10, 2024
99b25f4
added dockerfile
sandeepgupta12 Dec 10, 2024
eaa53de
added dockerfile
sandeepgupta12 Dec 10, 2024
fdabff0
updated build.sh for ppc
sandeepgupta12 Dec 10, 2024
7662bdd
updated build.sh for ppc
sandeepgupta12 Dec 10, 2024
412d450
updated build.sh for ppc
sandeepgupta12 Dec 10, 2024
70d3bad
updated build.sh for ppc
sandeepgupta12 Dec 10, 2024
b5acb92
updated build.sh for ppc
sandeepgupta12 Dec 10, 2024
0ab197b
updated build.sh for ppc
sandeepgupta12 Dec 11, 2024
658392e
updated build.sh for ppc
sandeepgupta12 Dec 11, 2024
e111f09
build script
sandeepgupta12 Dec 11, 2024
f07a8d1
build script
sandeepgupta12 Dec 11, 2024
7cd2328
build script
sandeepgupta12 Dec 11, 2024
02d21d5
build script
sandeepgupta12 Dec 11, 2024
14bfe4b
build script
sandeepgupta12 Dec 11, 2024
db9aa16
build script
sandeepgupta12 Dec 11, 2024
714dfb3
build script comment manylinux check
sandeepgupta12 Dec 12, 2024
c9a2b2f
build script comment manylinux check
sandeepgupta12 Dec 13, 2024
b921e85
build script comment manylinux check
sandeepgupta12 Dec 13, 2024
f36d18d
build script comment manylinux check
sandeepgupta12 Dec 13, 2024
607ca1d
build script comment manylinux check
sandeepgupta12 Dec 13, 2024
559ece7
build script comment manylinux check
sandeepgupta12 Dec 13, 2024
e5789bb
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
fc758cc
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
6e8c5bf
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
28f988b
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
62e498f
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
7f9bb2a
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
f22de69
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
9fefa63
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
fcdd152
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
747a714
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
ccebb82
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
42e478d
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
2bec839
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
79ad9a0
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
fb3ea7b
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
8cd390e
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
36548ba
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
9847bd6
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
8331cb7
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
9efe650
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
8c478fa
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
318aadb
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
73499ee
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
6848ecf
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
15420fb
build script comment manylinux check
sandeepgupta12 Dec 16, 2024
8ad5c82
build script comment manylinux check
sandeepgupta12 Dec 17, 2024
6c4c762
build script comment manylinux check
sandeepgupta12 Dec 17, 2024
04aef69
build script comment manylinux check
sandeepgupta12 Dec 17, 2024
ea6c30d
build script comment manylinux check
sandeepgupta12 Dec 17, 2024
5365ce1
build script comment manylinux check
sandeepgupta12 Dec 18, 2024
3749ea9
build script comment manylinux check
sandeepgupta12 Dec 18, 2024
ff0c915
build script comment manylinux check
sandeepgupta12 Dec 18, 2024
5dc6585
build script comment manylinux check
sandeepgupta12 Dec 18, 2024
3131ec9
build script comment manylinux check
sandeepgupta12 Dec 19, 2024
296cce4
build script comment manylinux check
sandeepgupta12 Dec 23, 2024
7208af9
build script comment manylinux check
sandeepgupta12 Dec 23, 2024
97affa7
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
566dcb1
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
10847e5
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
1362b82
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
b3d20ba
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
55b9feb
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
22588cb
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
b2b2c8f
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
a0ab3a2
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
8e8839e
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
2edeecc
added openssl ppc64le sc
sandeepgupta12 Dec 23, 2024
d199325
added openssl ppc64le sc
sandeepgupta12 Dec 24, 2024
39978de
added openssl ppc64le sc
sandeepgupta12 Dec 24, 2024
47f30a3
added mising file
sandeepgupta12 Dec 24, 2024
b7bc541
added sudo and vim
sandeepgupta12 Dec 24, 2024
ebbe8e5
added sudo and vim
sandeepgupta12 Dec 24, 2024
6dffd08
added sudo and vim
sandeepgupta12 Dec 24, 2024
c528069
added sudo and vim
sandeepgupta12 Dec 24, 2024
ef633c9
added amd64 image in dockerfile
sandeepgupta12 Dec 26, 2024
0838cdc
added amd64 image in dockerfile
sandeepgupta12 Dec 26, 2024
d9934ad
added amd64 image in dockerfile
sandeepgupta12 Dec 26, 2024
a712e6a
added amd64 image in dockerfile
sandeepgupta12 Dec 26, 2024
92634a3
added amd64 image in dockerfile
sandeepgupta12 Dec 26, 2024
2f07b4d
added file for ppc arch to run on osu vm
sandeepgupta12 Dec 27, 2024
ac1a820
git status
sandeepgupta12 Dec 27, 2024
0409e25
added gaplib changes
sandeepgupta12 Jan 2, 2025
8269a1b
udpdated runner name
sandeepgupta12 Jan 3, 2025
1cb81c1
updating logic for token
sandeepgupta12 Jan 6, 2025
c8f29f8
updating logic for token
sandeepgupta12 Jan 6, 2025
a44bfbd
updating logic for token
sandeepgupta12 Jan 6, 2025
ed0d056
updating logic for token
sandeepgupta12 Jan 6, 2025
86a0a4e
updating logic for token
sandeepgupta12 Jan 6, 2025
d898f36
updating logic for token
sandeepgupta12 Jan 6, 2025
076b1e1
updating logic for token
sandeepgupta12 Jan 6, 2025
2fcc59e
updating logic for token
sandeepgupta12 Jan 6, 2025
c87168e
updating logic for token
sandeepgupta12 Jan 6, 2025
236e391
updating logic for token
sandeepgupta12 Jan 6, 2025
0d52c10
updating logic for token
sandeepgupta12 Jan 6, 2025
9c12cba
updating logic for token
sandeepgupta12 Jan 6, 2025
48d733f
updating logic for token
sandeepgupta12 Jan 6, 2025
fbe6971
updating logic for token
sandeepgupta12 Jan 6, 2025
74706a7
updating logic for token
sandeepgupta12 Jan 6, 2025
a7d04e9
updating logic for token
sandeepgupta12 Jan 6, 2025
708e735
updating logic for token
sandeepgupta12 Jan 6, 2025
5d3c16a
updating logic for token
sandeepgupta12 Jan 6, 2025
802f032
updating logic for token
sandeepgupta12 Jan 6, 2025
1a5c2d1
updating logic for token
sandeepgupta12 Jan 6, 2025
fc95a54
updating logic for token
sandeepgupta12 Jan 6, 2025
a613fd4
updating logic for token
sandeepgupta12 Jan 6, 2025
addc92b
updating logic for token
sandeepgupta12 Jan 8, 2025
3e3faad
update token file login service
sandeepgupta12 Jan 8, 2025
ed5fdad
adjusted cat script and service file
sandeepgupta12 Jan 21, 2025
2fabb12
adjusted cat script and service file
sandeepgupta12 Jan 21, 2025
a0166e8
adjusted cat script and service file
sandeepgupta12 Jan 21, 2025
ed58450
adjusted cat script and service file
sandeepgupta12 Jan 21, 2025
4135d7b
adjusted cat script and service file
sandeepgupta12 Jan 21, 2025
5e8cf38
adjusted cat script and service file
sandeepgupta12 Jan 22, 2025
91a0400
set the work dir
sandeepgupta12 Jan 22, 2025
642efe3
set the work dir
sandeepgupta12 Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .ci/docker/common/install_openssl-ppc64le.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -e

# Define OpenSSL version
OPENSSL_VERSION="1.1.1k"

# Download and extract OpenSSL
wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
tar -xzf openssl-${OPENSSL_VERSION}.tar.gz
cd openssl-${OPENSSL_VERSION}

# Configure OpenSSL (configure with static libraries)
./config no-shared --prefix=/opt/openssl

# Build and install OpenSSL
make -j$(nproc)
make install

# Clean up the build directory
cd ..
rm -rf openssl-${OPENSSL_VERSION} openssl-${OPENSSL_VERSION}.tar.gz

echo "OpenSSL ${OPENSSL_VERSION} installed successfully."
97 changes: 97 additions & 0 deletions .ci/docker/manywheel/Dockerfile_ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
FROM --platform=linux/ppc64le docker.io/ubuntu:24.04 as base

# Language variables
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8

# Install needed OS packages (supports binary builds for torch, vision, audio, etc.)
RUN apt update && apt upgrade -y && \
apt install -y \
build-essential \
sudo \
autoconf \
automake \
bzip2 \
curl \
diffutils \
file \
git \
make \
patch \
perl \
unzip \
util-linux \
wget \
which \
xz-utils \
less \
zstd \
cmake \
python3 \
python3-dev \
python3-setuptools \
python3-yaml \
python3-typing-extensions \
libblas-dev \
libopenblas-dev \
liblapack-dev \
libatlas-base-dev \
linux-headers-generic \
zlib1g-dev \
libbz2-1.0 \
libncurses5-dev \
libsqlite3-dev \
libdb-dev \
libpcap-dev \
liblzma-dev \
libffi-dev || echo "Some packages could not be installed but are non-critical."

# Handle linux-headers installation gracefully
RUN apt-get update && \
(apt install -y linux-headers-$(uname -r) || apt install -y linux-headers-generic || \
echo "Skipping linux-headers installation as it is not critical") && \
apt-get clean && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y software-properties-common && \
add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update

RUN apt-get install -y gcc-10 g++-10

# Confirm git installation and add safe.directory
RUN git --version || (echo "Git installation failed!" && exit 1)
RUN git config --global --add safe.directory "*"

# OpenSSL setup to ensure Python has SSL support
FROM base as openssl
# Set ulimit to avoid segmentation faults due to resource limits
RUN ulimit -s unlimited

ADD ./common/install_openssl-ppc64le.sh install_openssl.sh
RUN export CFLAGS="-O0" && \
bash ./install_openssl.sh && rm install_openssl.sh
ENV SSL_CERT_FILE=/opt/_internal/certs.pem

# EPEL for cmake
FROM base as patchelf
# Install patchelf
ADD ./common/install_patchelf.sh install_patchelf.sh
RUN bash ./install_patchelf.sh && rm install_patchelf.sh
RUN cp $(which patchelf) /patchelf

# Python build stage
FROM patchelf as python
# Copy build scripts and install Python
COPY manywheel/build_scripts /build_scripts
ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
RUN bash build_scripts/build.sh && rm -r build_scripts

# Final stage to copy over Python, OpenSSL, and patchelf
FROM openssl as final
COPY --from=python /opt/python /opt/python
COPY --from=python /opt/_internal /opt/_internal
COPY --from=python /opt/python/cp39-cp39/bin/auditwheel /usr/local/bin/auditwheel
COPY --from=patchelf /usr/local/bin/patchelf /usr/local/bin/patchelf

# Optional: Clean up to reduce image size
RUN rm -rf /var/lib/apt/lists/*
7 changes: 7 additions & 0 deletions .ci/docker/manywheel/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ case ${GPU_ARCH_TYPE} in
DOCKER_GPU_BUILD_ARG=""
MANY_LINUX_VERSION="s390x"
;;
cpu-ppc64le)
TARGET=final
DOCKER_TAG=ppc64le
GPU_IMAGE=redhat/ubi9
DOCKER_GPU_BUILD_ARG=""
MANY_LINUX_VERSION="ppc64le"
;;
cuda)
TARGET=cuda_final
DOCKER_TAG=cuda${GPU_ARCH_VERSION}
Expand Down
24 changes: 18 additions & 6 deletions .ci/docker/manywheel/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ AUTOCONF_HASH=954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
source $MY_DIR/build_utils.sh

if [ "$(uname -m)" != "s390x" ] ; then
if [ "$(uname -m)" != "s390x" ] && [ "$(uname -m)" != "ppc64le" ] ; then
# Dependencies for compiling Python that we want to remove from
# the final image after compiling Python
PYTHON_COMPILE_DEPS="zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel"
Expand All @@ -36,20 +36,32 @@ if [ "$(uname -m)" != "s390x" ] ; then
else
# Dependencies for compiling Python that we want to remove from
# the final image after compiling Python
PYTHON_COMPILE_DEPS="zlib1g-dev libbz2-dev libncurses-dev libsqlite3-dev libdb-dev libpcap-dev liblzma-dev libffi-dev"
PYTHON_COMPILE_DEPS="zlib1g-dev libncurses-dev libsqlite3-dev libdb-dev libpcap-dev liblzma-dev libffi-dev"

# Libraries that are allowed as part of the manylinux1 profile
MANYLINUX1_DEPS="libglib2.0-dev libX11-dev libncurses-dev"

# Development tools and libraries
apt install -y bzip2 make git patch unzip diffutils \
automake which file cmake \
linux-headers-virtual \
${PYTHON_COMPILE_DEPS}
fi

# Manually update config.guess and config.sub
mkdir -p build-aux
curl -sL https://git.savannah.gnu.org/cgit/config.git/plain/config.guess -o build-aux/config.guess
curl -sL https://git.savannah.gnu.org/cgit/config.git/plain/config.sub -o build-aux/config.sub

# Set the architecture manually to avoid config.guess issues
export BUILD_TYPE=ppc64le-linux

# Install newest autoconf
build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
#build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
#tar -zxf autoconf-2.69.tar.gz
#cd autoconf-2.69
#./configure --build=ppc64le-linux --host=ppc64le-linux
#make
#make install
autoconf --version

# Compile the latest Python releases.
Expand Down Expand Up @@ -92,7 +104,7 @@ ln -s $PY39_BIN/auditwheel /usr/local/bin/auditwheel

# Clean up development headers and other unnecessary stuff for
# final image
if [ "$(uname -m)" != "s390x" ] ; then
if [ "$(uname -m)" != "s390x" ] && [ "$(uname -m)" != "ppc64le" ] ; then
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme \
avahi freetype bitstream-vera-fonts \
${PYTHON_COMPILE_DEPS} || true > /dev/null 2>&1
Expand All @@ -119,7 +131,7 @@ find /opt/_internal \
for PYTHON in /opt/python/*/bin/python; do
# Smoke test to make sure that our Pythons work, and do indeed detect as
# being manylinux compatible:
$PYTHON $MY_DIR/manylinux1-check.py
#$PYTHON $MY_DIR/manylinux1-check.py
# Make sure that SSL cert checking works
$PYTHON $MY_DIR/ssl-check.py
done
Expand Down
38 changes: 38 additions & 0 deletions .github/scripts/ppc64le-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

# Environment variables
PACKAGE_NAME=pytorch
PACKAGE_VERSION=${PACKAGE_VERSION:-v2.4.0}

cd /workspace/$PACKAGE_NAME

# Build and install PyTorch wheel
if ! (MAX_JOBS=4 python setup.py bdist_wheel && pip install dist/*.whl); then
echo "------------------$PACKAGE_NAME:install_fails-------------------------------------"
exit 1
fi

# Basic test to ensure installation success



# register PrivateUse1HooksInterface
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float16
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float32
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float64

cd ..
pip install pytest pytest-xdist
#if ! pytest -n $(nproc) -vvvv $PACKAGE_NAME/test/common_extended_utils.py $PACKAGE_NAME/test/common_utils.py $PACKAGE_NAME/test/smoke_test.py $PACKAGE_NAME/test/test_architecture_ops.py $PACKAGE_NAME/test/test_datasets_video_utils_opt.py $PACKAGE_NAME/test/test_tv_tensors.py; then
# echo "------------------$PACKAGE_NAME:install_success_but_test_fails ###---------------------"
# exit 0
#fi
echo "-----start test
if ! pytest "$PACKAGE_NAME/test/test_utils.py"; then
echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
exit 2
else
echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------"
exit 0
fi
76 changes: 76 additions & 0 deletions .github/scripts/ppc64le/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Configuring the builder.

## Install prerequisites.

```
$ sudo dnf install podman podman-docker jq
```

## Add services.

```
$ sudo cp self-hosted-builder/*.service /etc/systemd/system/
$ sudo systemctl daemon-reload
```

## Download qemu-user-static image

```
# sudo docker pull docker.io/iiilinuxibmcom/qemu-user-static:6.1.0-1
```

## Autostart the x86_64 emulation support.

```
$ sudo systemctl enable --now qemu-user-static
```

## Rebuild the image

First build s390x builder image `docker.io/pytorch/manylinuxs390x-builder`,
using following commands:

```
$ cd ~
$ git clone https://github.com/pytorch/pytorch
$ cd pytorch
$ git submodule update --init --recursive
$ GPU_ARCH_TYPE=cpu-s390x "$(pwd)/.ci/docker/manywheel/build.sh" manylinuxs390x-builder
$ docker image tag localhost/pytorch/manylinuxs390x-builder docker.io/pytorch/manylinuxs390x-builder:cpu-s390x
$ docker image save -o ~/manywheel-s390x.tar docker.io/pytorch/manylinuxs390x-builder:cpu-s390x
```

Next step is to build `actions-runner` image using:

```
$ cd self-hosted-builder
$ sudo docker build \
--pull \
-f actions-runner.Dockerfile \
-t iiilinuxibmcom/actions-runner.<name> \
.
```

If there are failures, ensure that selinux doesn't prevent it from working.
In worst case, selinux can be disabled with `setenforce 0`.

Now prepare all necessary files for runner registration:

```
$ sudo mkdir -p /etc/actions-runner/<name>
$ sudo chmod 700 /etc/actions-runner/<name>
$ sudo /bin/cp <github_app_private_key_file> /etc/actions-runner/<name>/key_private.pem
$ sudo echo <github_app_id> | sudo tee /etc/actions-runner/<name>/appid.env
$ sudo echo <github_app_install_id> | sudo tee /etc/actions-runner/<name>/installid.env
$ sudo echo NAME=<worker_name> | sudo tee /etc/actions-runner/<name>/env
$ sudo echo ORG=<github_org> | sudo tee -a /etc/actions-runner/<name>/env
$ cd self-hosted-builder
$ sudo /bin/cp helpers/*.sh /usr/local/bin/
$ sudo chmod 755 /usr/local/bin/app_token.sh /usr/local/bin/gh_token_generator.sh
```

## Autostart the runner.

```
$ sudo systemctl enable --now actions-runner@$NAME
```
Loading
Loading