Intel OneAPI/icpx-2022.2/icpc-2021.7: unable to configure: PTScotch (and/or Spai, PARTY), failing with "-W-implicit-function-declaration" errors and HYPRE failing with "ld: cannot find -loopopt=1"
Hi,
has anyone compiled PETSc successfully with the Intel OneAPI compilers (IntelMPI + icpx + icx + ifx compilers)?
I am struggling to have it work... I am unable to use the "mpiicpc" because of a warning about deprecated compiler:
mpiicpc -c t.cc
icpc: remark #10441: The Intel(R) C++ Compiler Classic (ICC) is deprecated and will be removed from product release in the second half of 2023. The Intel(R) oneAPI DPC++/C++ Compiler (ICX) is the recommended compiler moving forward. Please transition to use this compiler. Use '-diag-disable=10441' to disable this message.
which seems to be a no-go for PETSc configuration script... (how can I disable the warning by PETSc configuration options?)
Good to know: using Intel/mpicxx do not use the Intel compiler (!!!):
mpicxx -v
mpigxx for the Intel(R) MPI Library 2021.7 for Linux*
Copyright Intel Corporation.
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.1 20210422 (Red Hat 10.3.1-1) (GCC)
and using directly the icpx
compiler gives error in METIS (but also Chaco) (see configure_icpx_metis_error.log
Anyone knows all good flags for Intel OneAPI/icpx-2022.2/icpc-2021.7? (sorry... Intel version numbers are really confusing...)
Thanks, Eric