File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1919cd  ..
2020pip 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 
3022if  !  pytest " $PACKAGE_NAME /test/test_utils.py" ;  then 
3123    echo  " ------------------$PACKAGE_NAME :install_success_but_test_fails---------------------" 
3224
3325else 
3426    echo  " ------------------$PACKAGE_NAME :install_and_test_both_success-------------------------" 
3527fi 
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
3931else 
Original file line number Diff line number Diff 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
1622RUN ln -sf /usr/bin/python3 /usr/bin/python && \
@@ -20,8 +26,8 @@ COPY requirements.txt .
2026# Install Python packages via pip
2127RUN 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
2733COPY . /workspace/pytorch
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments