[petsc-users] Unable to compile super_dist using an intel compiler

Smith, Barry F. bsmith at mcs.anl.gov
Tue Aug 27 21:13:23 CDT 2019


 CMake  likes to specifically check that all include directories passed to it exist. PETSc does not 

  foreach(dir ${TPL_PARMETIS_INCLUDE_DIRS})
    if (NOT EXISTS ${dir})
      message(FATAL_ERROR "PARMETIS include directory not found: ${dir}")
    endif()
    set(CMAKE_C_FLAGS "-I${dir} ${CMAKE_C_FLAGS}")
  endforeach()

Given configure's habit of printing things out of order it is not possible to say decisively where the include path first appears but it does appear here when checking for Fortran include files.

Executing: mpiifort  -o /tmp/petsc-r1P209/config.compilers/conftest  -v   -fPIC -g -O3  /tmp/petsc-r1P209/config.compilers/conftest.o -lstdc++ -ldl 
stdout:
mpiifort for the Intel(R) MPI Library 2018 Update 3 for Linux*
Copyright(C) 2003-2018, Intel Corporation.  All rights reserved.
Possible ERROR while running linker:
stdout:
mpiifort for the Intel(R) MPI Library 2018 Update 3 for Linux*
Copyright(C) 2003-2018, Intel Corporation.  All rights reserved.stderr:
ifort version 18.0.3
/apps/local/easybuild/software/ifort/2018.3.222-GCC-7.3.0-2.30/compilers_and_libraries_2018.3.222/linux/bin/intel64/fortcom    -mGLOB_em64t=TRUE -mP1OPT_version=18.0-intel64 -mGLOB_diag_file=/tmp/petsc-r1P209/config.compilers/conftest.diag -mGLOB_long_size_64 -mGLOB_routine_pointer_size_64 -mGLOB_source_language=GLOB_SOURCE_LANGUAGE_F90 -mP2OPT_static_promotion -mP1OPT_print_version=FALSE -mCG_use_gas_got_workaround=F -mP2OPT_align_option_used=TRUE -mGLOB_gcc_version=730 "-mGLOB_options_string=-I/apps/local/easybuild/software/impi/2018.3.222-iccifort-2018.3.222-GCC-7.3.0-2.30/intel64/include -I/apps/local/easybuild/software/impi/2018.3.222-iccifort-2018.3.222-GCC-7.3.0-2.30/intel64/include 

It gets into the BLAS/LAPACK includes at 

Checking for header files ['mkl.h', 'mkl_spblas.h'] in ['/apps/local/easybuild/software/impi/2018.3.222-iccifort-2018.3.222-GCC-7.3.0-2.30/intel64/include']

It is in your 

CPATH=/apps/local/easybuild/software/imkl/2018.3.222-iimpi-2018.03/mkl/include/fftw:/apps/local/easybuild/software/imkl/2018.3.222-iimpi-2018.03/mkl/include:/apps/local/easybuild/software/impi/2018.3.222-iccifort-2018.3.222-GCC-7.3.0-2.30/include64:/apps/local/easybuild/software/ifort/2018.3.222-GCC-7.3.0-2.30/include:/apps/local/easybuild/software/icc/2018.3.222-GCC-7.3.0-2.30/compilers_and_libraries_2018.3.222/linux/tbb/include:/apps/local/easybuild/software/binutils/2.30-GCCcore-7.3.0/include:/apps/local/easybuild/software/GCCcore/7.3.0/include:/home/kongf/workhome/lemhi/tools/include::



> On Aug 27, 2019, at 3:18 PM, Fande Kong via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi All,
> 
> I was trying to compile PETSc with "--download-superlu_dist" using an intel compiler. I have explored with different options, but did not get PETSc built successfully so far. Any help would be appreciated.
> 
> The log file is attached.
> 
> Thanks,
> 
> Fande,
> <configure.log.zip>



More information about the petsc-users mailing list