Intel® HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2147 Discussions

mpirun not recognizing all processors

Joao_Pascon
Beginner
263 Views

Hello everyone!

I am trying to run a simple fortran code with MPI. I am using Windows 11, Visual Studio 2022 and I have already installed the Intel oneAPI Base Toolkit and the Intel oneAPI HPC Toolkit.

The code is below:

 

program MPI_test_2

implicit none

include 'mpif.h'

INTEGER :: MY_RANK, NPR, LOCAL_N, SOURCE, DEST, TAG,
# STATUS(MPI_STATUS_SIZE), IERR
CALL MPI_INIT(IERR)
CALL MPI_COMM_RANK(MPI_COMM_WORLD, MY_RANK, IERR)
CALL MPI_COMM_SIZE(MPI_COMM_WORLD, NPR, IERR)

write (*,*) my_rank, NPR

CALL MPI_FINALIZE(IERR)

stop
end program MPI_test_2

 

The VS compiles correctly. However, when I try to run the program in the Command Prompt (mpirun -np 4 ./Test2, for example), the result is always the same, as if there was only one processor:

 0 1

 2 1

 3 1

 1 1

 

My PC has 8 cores and 16 processors. I have already checked the number of processors in Advanced Options of System Configuration, and also with CPU ID program.

 

Sincerely

João Paulo Pascon

University of São Paulo

0 Kudos
1 Reply
Steve_Lionel
Black Belt
257 Views

Intel MPI is discussed in Intel® oneAPI HPC Toolkit - Intel Communities .

0 Kudos
Reply