File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,16 @@ jobs:
4242          if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi 
4343name : Install pylops-mpi 
4444        run : pip install . 
45-       - name : Debug MPI Execution  
45+       - name : Debug MPI tests  
4646        run : | 
47-           echo "Starting MPI test" 
48-           mpiexec -n ${{ matrix.rank }} hostname 
49-           echo "MPI test completed" 
47+           echo "CPUs available: $(nproc)" 
48+           if [ "${{ matrix.mpi }}" = "openmpi" ]; then 
49+             mpiexec --oversubscribe \ 
50+                     --bind-to none \ 
51+                     -n ${{ matrix.rank }} python -m pytest tests/ --with-mpi -v 
52+           else 
53+             mpiexec -n ${{ matrix.rank }} python -m pytest tests/ --with-mpi -v 
54+           fi 
55+ 
5056#       - name: Testing using pytest-mpi
5157#         run: mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments