Skip to content

Commit 71035ab

Browse files
update path and script for tests
1 parent 3a81b20 commit 71035ab

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/scripts/ppc64le-build.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,13 @@ fi
1919
cd ..
2020
pip install pytest pytest-xdist
2121

22-
echo "-----start test
23-
# register PrivateUse1HooksInterface
24-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16
25-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float16
26-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float32
27-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float64
28-
29-
echo "-----start test
3022
if ! pytest "$PACKAGE_NAME/test/test_utils.py"; then
3123
echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
3224

3325
else
3426
echo "------------------$PACKAGE_NAME:install_and_test_both_success-------------------------"
3527
fi
36-
if ! pytest -Xrs test; then
28+
if ! pytest -v -s "$PACKAGE_NAME/test"; then
3729
echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
3830
exit 2
3931
else

.github/workflows/Dockerfile.ppc64le

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ RUN dnf install -y \
99
dnf clean all
1010

1111
# Set up GCC toolset and compilers
12-
ENV CC=/opt/rh/gcc-toolset-13/root/usr/bin/gcc
13-
ENV CXX=/opt/rh/gcc-toolset-13/root/usr/bin/g++
12+
#ENV CC=/opt/rh/gcc-toolset-13/root/usr/bin/gcc
13+
#ENV CXX=/opt/rh/gcc-toolset-13/root/usr/bin/g++
14+
15+
ENV PATH="/opt/rh/gcc-toolset-13/root/usr/bin:$PATH"
16+
ENV MANPATH="/opt/rh/gcc-toolset-13/root/usr/share/man"
17+
ENV INFOPATH="/opt/rh/gcc-toolset-13/root/usr/share/info"
18+
ENV PCP_DIR="/opt/rh/gcc-toolset-13/root"
19+
ENV LD_LIBRARY_PATH="/opt/rh/gcc-toolset-13/root/usr/lib64:/opt/rh/gcc-toolset-13/root/usr/lib"
1420

1521
# Set Python and pip aliases to use Python 3.9
1622
RUN ln -sf /usr/bin/python3 /usr/bin/python && \
@@ -20,8 +26,8 @@ COPY requirements.txt .
2026
# Install Python packages via pip
2127
RUN pip install wheel setuptools pyyaml typing_extensions expecttest
2228

23-
RUN source /opt/rh/gcc-toolset-13/enable && pip install -r requirements.txt
24-
#RUN pip install -r requirements.txt
29+
#RUN source /opt/rh/gcc-toolset-13/enable && pip install -r requirements.txt
30+
RUN pip install -r requirements.txt
2531

2632
# Copy the PyTorch source code into the container
2733
COPY . /workspace/pytorch

0 commit comments

Comments
 (0)