On Fri, 5 Jul 2024, dr hwang wrote: > thanks for your answer, i am using gcc-9 in my ubuntu20. 04,if gcc9 compatible with intel parallel studio 2019? Whats the exact version? You can look it up here - for ex: for 19. 0. 5: https: //urldefense. us/v3/__https: //www. intel. com/content/www/us/en/developer/articles/release-notes/c-compiler-legacy/19-0-linux-host-for-iss2019. html__;!!G_uCfscf7eWS!aDPoikaTU4kcLC1_SoO-Sm-JdHaRDEL_OApxyyI_0V2n0rhOt6zqUpNtgYPwfpZNmuuhFPHkFCVKWVfzmKJHJuyNsdU$
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
On Fri, 5 Jul 2024, dr hwang wrote:

> thanks for your answer, i am using gcc-9  in my ubuntu20.04,if gcc9 compatible  with intel parallel studio 2019?

Whats the exact version? You can look it up here - for ex: for 19.0.5:

https://urldefense.us/v3/__https://www.intel.com/content/www/us/en/developer/articles/release-notes/c-compiler-legacy/19-0-linux-host-for-iss2019.html__;!!G_uCfscf7eWS!aDPoikaTU4kcLC1_SoO-Sm-JdHaRDEL_OApxyyI_0V2n0rhOt6zqUpNtgYPwfpZNmuuhFPHkFCVKWVfzmKJHJuyNsdU$

* gcc versions 4.3 - 8.x supported

You should also be able to use latest Intel OneAPI compiler.

And unless you have a specific reason to use an Intel compiler - gcc/g++ should be more suitable for general use.

And would also be good if you can update your code to use latest petsc version - 3.21.

Satish

> 
> 获取Outlook for Android<https://urldefense.us/v3/__https://aka.ms/AAb9ysg__;!!G_uCfscf7eWS!YD3pSCtmel4vZOSRRp4xe90d2P67Alot3sDBXE54GF3Gaj55MxEmoJjwCHNWWlcyOwTlsK7kpRs_r3lsFjO3hfiZPHbd0g$>
> ________________________________
> From: Satish Balay <balay....@fastmail.org>
> Sent: Friday, July 5, 2024 12:18:30 PM
> To: dr hwang <dr_hwang2...@outlook.com>
> Cc: petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov>
> Subject: Re: [petsc-users] make check error using Intel MKL
> 
> Intel compilers require a compatible gcc/g++ compiler.
> 
> gcc-11 on ubuntu20.04 might be too new for "Intel parallel studio 2019"
> 
> So you'll need an older gcc - perhaps gcc-7 or gcc-8 for this version of Intel compiler.
> 
> Alternative: if you do not need to use petsc from c++ - you can try the following and see if it works:
> 
> --with-cxx=0
> 
> Satish
> 
> On Fri, 5 Jul 2024, dr hwang wrote:
> 
> > Dear support team,
> >
> >        I want to install the petsc-3.18.5 in my ubuntu20.04 with compiler "Intel parallel studio 2019", but I met some error when I execute the "make check". Below is my steps and relevant errors.
> >        Firstly, in my ~/.bashrc, I have exported the PETSC_DIR=/home/hwang/archive/petsc-3.18.5 PETSC_ARCH=linux-gnu-intel and make it source.
> >
> > (1)    tar zxvf petsc-3.18.5.tar.gz
> >
> >
> > (2)     ./configure PETSC_ARCH=linux-gnu-intel --prefix=/home/hwang/software/petsc-3.18.5 \
> >
> > --with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort --with-blaslapack-dir=${MKLROOT}/lib/intel64 --with-clean
> >
> >
> > (3)    make PETSC_DIR=/home/hwang/archive/petsc-3.18.5  PETSC_ARCH=linux-gnu-intel all
> >
> >
> > (4)    make PETSC_DIR=/home/hwang/archive/petsc-3.18.5  PETSC_ARCH=linux-gnu-intel install
> >
> >
> >
> > (5)    make PETSC_DIR=/home/hwang/software/petsc-3.18.5 PETSC_ARCH="" check
> >
> >
> > the step (5) finally threw the error like below:
> > "ld: /home/hwang/software/petsc-3.19.6/lib/libpetsc.so: undefined reference to `__builtin_is_constant_evaluated'
> > make[4]: *** [/home/hwang/software/petsc-3.19.6/lib/petsc/conf/rules:216: ex5f] Error 1
> > Possible error running Fortran example src/snes/tutorials/ex5f with 1 MPI process
> > See https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eqXOT36R1yIYfqMp-oF8yWf52fuq7J3L7CbkswjYcLeO7fQEIVvCYwGmvixTX1I4JJlq_XDHZ46Smrc0UZff2-GXD8YTHw$
>> [proxy:0:0@DESKTOP-AM9CLNS] HYD_spawn (../../../../../src/pm/i_hydra/libhydra/spawn/intel/hydra_spawn.c:117): execvp error on file ./ex5f (No such file or directory)
> >
> >
> > ld: /home/hwang/software/petsc-3.19.6/lib/libpetsc.so: undefined reference to `__builtin_is_constant_evaluated'
> > make[4]: *** [<builtin>: ex19] Error 1
> > Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process
> > See https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eqXOT36R1yIYfqMp-oF8yWf52fuq7J3L7CbkswjYcLeO7fQEIVvCYwGmvixTX1I4JJlq_XDHZ46Smrc0UZff2-GXD8YTHw$"
> >
> >
> > How can I solved it? Could you please help me.
> >
> > Best regards,
> >
> 
> 

Reply via email to