[petsc-users] Can't compile code after upgrading to VS2017 and Intel One API + PETSc 3.15
TAY wee-beng
zonexo at gmail.com
Tue Apr 20 01:35:08 CDT 2021
Hi,
Sorry, I didn't notice your email. Anyway, I uninstalled Intel MPI and
replaces it with MS MPI with Intel ifort. It's working correctly now.
So I guess the problem lies with Intel MPI.
Thank you very much.
Yours sincerely,
================================================
TAY Wee-Beng 郑伟明 (Zheng Weiming)
Personal research webpage: _http://tayweebeng.wixsite.com/website_
Youtube research showcase: _https://goo.gl/PtvdwQ_
linkedin: _https://www.linkedin.com/in/tay-weebeng_
================================================
On 17/4/2021 10:08 pm, Satish Balay wrote:
> Can you try editing this example and changing PETSC_COMM_WORLD to MPI_COMM_WORLD - and
> see if that works?
>
> Satish
>
> On Fri, 16 Apr 2021, TAY wee-beng wrote:
>
>> Hi,
>>
>> There's no error.log.
>>
>> I have removed the LP64 lib but the error is still the same during Fortran
>> test below. Any other solution?
>>
>> $ make PETSC_DIR=/cygdrive/e/wtay/Downloads/Source_codes/petsc-main
>> PETSC_ARCH=petsc-dev_win64_impi_vs2017 check
>> Running check examples to verify correct installation
>> Using PETSC_DIR=/cygdrive/e/wtay/Downloads/Source_codes/petsc-main and
>> PETSC_ARCH=petsc-dev_win64_impi_vs2017
>> C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
>> C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
>> make[3]:
>> [/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/conf/rules:350:
>> ex5f.PETSc] Error 2 (ignored)
>> *******************Error detected during compile or link!*******************
>> See http://www.mcs.anl.gov/petsc/documentation/faq.html
>> /cygdrive/e/wtay/Downloads/Source_codes/petsc-main/src/snes/tutorials ex5f
>> *********************************************************
>> /cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/bin/win32fe/win32fe
>> ifort -MD -Z7 -fpp -MD -Z7 -fpp
>> -I/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/include
>> -I/cygdrive/e/wtay/Downloads/Sourc
>> e_codes/petsc-main/petsc-dev_win64_impi_vs2017/include -I/cygdrive/c/Program\
>> Files\ \(x86\)/Intel/oneAPI/mpi/latest/include ex5f.F90
>> -L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_imp
>> i_vs2017/lib
>> -L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_impi_vs2017/lib
>> -L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_impi_vs2017/lib
>> -lpetsc -lflapack -lfblas /c
>> ygdrive/c/Program\ Files\ \(x86\)/Intel/oneAPI/mpi/latest/lib/debug/impi.lib
>> /cygdrive/c/Program\ Files\
>> \(x86\)/Intel/oneAPI/mpi/latest/lib/debug/impicxx.lib Gdi32.lib User32.lib
>> Advapi32.lib Kernel32.lib Ws2_3
>> 2.lib -o ex5f
>> ex5f.F90(83): error #6405: The same named entity from different modules and/or
>> program units cannot be referenced. [PETSC_COMM_WORLD]
>> call MPI_Comm_size(PETSC_COMM_WORLD,size,ierr)
>> -------------------------^
>> ex5f.F90(83): error #7112: This actual argument must not be the name of a
>> procedure. [PETSC_COMM_WORLD]
>> call MPI_Comm_size(PETSC_COMM_WORLD,size,ierr)
>> -------------------------^
>> ex5f.F90(84): error #6405: The same named entity from different modules and/or
>> program units cannot be referenced. [PETSC_COMM_WORLD]
>> call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)
>> -------------------------^
>> ex5f.F90(84): error #7112: This actual argument must not be the name of a
>> procedure. [PETSC_COMM_WORLD]
>> call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)
>> -------------------------^
>> ex5f.F90(96): error #6405: The same named entity from different modules and/or
>> program units cannot be referenced. [PETSC_COMM_WORLD]
>> ierr = PETSC_ERR_ARG_OUTOFRANGE; call
>> PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
>> MPIU_Abort(PETSC_COMM_WORLD,ierr)
>> ---------------------------------------------------------^
>> ex5f.F90(96): error #6405: The same named entity from different modules and/or
>> program units cannot be referenced. [PETSC_COMM_WORLD]
>> ierr = PETSC_ERR_ARG_OUTOFRANGE; call
>> PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
>> MPIU_Abort(PETSC_COMM_WORLD,ierr)
>> ------------------------------------------------------------------------------------------------------------^
>> ex5f.F90(96): error #7112: This actual argument must not be the name of a
>> procedure. [PETSC_COMM_WORLD]
>> ierr = PETSC_ERR_ARG_OUTOFRANGE; call
>> PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
>> MPIU_Abort(PETSC_COMM_WORLD,ierr)
>> ------------------------------------------------------------------------------------------------------------^
>> ex5f.F90(103): error #6405: The same named entity from different modules
>> and/or program units cannot be referenced. [PETSC_COMM_WORLD]
>> call SNESCreate(PETSC_COMM_WORLD,snes,ierr)
>> ----------------------^
>> ex5f.F90(103): error #7112: This actual argument must not be the name of a
>> procedure. [PETSC_COMM_WORLD]
>> call SNESCreate(PETSC_COMM_WORLD,snes,ierr)
>> ----------------------^
>> ex5f.F90(120): error #6405: The same named entity from different modules
>> and/or program units cannot be referenced. [PETSC_COMM_WORLD]
>> call DMDACreate2d(PETSC_COMM_WORLD,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE, &
>> ------------------------^
>> ex5f.F90(120): error #6285: There is no matching specific subroutine for this
>> generic subroutine call. [DMDACREATE2D]
>> call DMDACreate2d(PETSC_COMM_WORLD,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE, &
>> -----------^
>> compilation aborted for ex5f.F90 (code 1)
>> make[4]: ***
>> [/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/conf/test:23:
>> ex5f] Error 1
>> Completed test examples
>>
>> Thank you very much.
>>
>> Yours sincerely,
>>
>> ================================================
>> TAY Wee-Beng 郑伟明 (Zheng Weiming)
>> Personal research webpage: _http://tayweebeng.wixsite.com/website_
>> Youtube research showcase: _https://goo.gl/PtvdwQ_
>> linkedin: _https://www.linkedin.com/in/tay-weebeng_
>> ================================================
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210420/d7009ee9/attachment.html>
More information about the petsc-users
mailing list