Hello eveyone, I'm trying to compiler a simple "Hello World" program in Fortran90 like below with Intel oneAPI HPC toolkit in visual studio 2019:
character * (MPI_MAX_PROCESSOR_NAME) processor_name
integer myid, numprocs, namelen, rc, ierr
call MPI_INIT( ierr )
call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )
call MPI_GET_PROCESSOR_NAME(processor_name, namelen, ierr)
print *,"Hello World! Process ",myid," of ", numprocs, " on", processor_name
but the compiler told me that it cannot open the compiled modele file. Here is the error:
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI]
error #6591: An automatic object is invalid in a main program. [PROCESSOR_NAME]
error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association.
I have re-installed the vs and intel oneAPI and ensured the versions of intel oneAPI
Base toolkit and HPC toolkit match.
Does anybody could tell me what's wrong? Thanks in advance.
We have not heard back from you. This thread will no longer be monitored by Intel. If you need any additional information, please post a new question.
Thanks & Regards,