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:
INTEGER :: MY_RANK, NPR, LOCAL_N, SOURCE, DEST, TAG,
# STATUS(MPI_STATUS_SIZE), IERR
CALL MPI_COMM_RANK(MPI_COMM_WORLD, MY_RANK, IERR)
CALL MPI_COMM_SIZE(MPI_COMM_WORLD, NPR, IERR)
write (*,*) my_rank, NPR
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:
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.
João Paulo Pascon
University of São Paulo