Re: dealii installation error-oneapi

111 views
Skip to first unread message
Message has been deleted

Bruno Turcksin

unread,
Oct 27, 2023, 11:50:08 AM10/27/23
to deal.II User Group
ninghui,

Can you share /media/ninghui/Aspect/dealii-candi-oneapi/tmp/build/deal.II-v9.5.1/CMakeFiles/CMakeOutput.log and /media/ninghui/Aspect/dealii-candi-oneapi/tmp/build/deal.II-v9.5.1/CMakeFiles/CMakeError.log.

Best,

Bruno

On Tuesday, October 17, 2023 at 8:27:33 PM UTC-4 nh3242...@gmail.com wrote:
Hi, all

Hello everyone!
I had some problems when using candi to compile and install dealii. The mkl+oneapi component is selected.

------------------------------------------
3.1.0/lib/intel64/libmkl_gnu_thread.so;/opt/intel/oneapi/mkl/2023.1.0/lib/intel64/libmkl_core.so;/usr/lib/gcc/x86_64-linux-gnu/11/libgomp. so;-lm;-ldl
--
-- DEAL_II_WITH_LAPACK successfully set up with external dependencies.
--
-- Include /media/ninghui/Aspect/dealii-candi-oneapi/tmp/unpack/deal.II-v9.5.1/cmake/configure/configure_10_mpi.cmake
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.9.0/lib/release/libmpi.so (found version "3.1")
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.9.0/bin/mpif90 (found version "3.1")
-- Could NOT find MPI (missing: MPI_CXX_FOUND) (found version "3.1")
-- Found MPI_MPI_H
-- Performing Test MPI_UNDERLINKAGE_OK
-- Performing Test MPI_UNDERLINKAGE_OK - Success
-- Processing MPI variables and targets
-- Unable to process MPI
-- DEAL_II_WITH_MPI has unmet external dependencies.
CMake Error at cmake/configure/configure_10_mpi.cmake:68 (message):
 

   Could not find any suitable mpi library!

 

   Please ensure that an mpi library is installed on your computer

   and set MPI_CXX_COMPILER to the appropriate mpi wrappers:

       $ cmake -DMPI_CXX_COMPILER=".../mpicxx" <...>

   Or with additional C and Fortran wrappers (recommended!):

       $ cmake -DMPI_C_COMPILER=".../mpicc"\
               -DMPI_CXX_COMPILER=".../mpicxx"\
               -DMPI_Fortran_COMPILER=".../mpif90"\
               <...>

Call Stack (most recent call first):
   /media/ninghui/Aspect/dealii-candi-oneapi/tmp/build/deal.II-v9.5.1/CMakeFiles/CMakeTmp/evaluate_expression.tmp:1 (feature_MPI_error_message)
   cmake/macros/macro_evaluate_expression.cmake:30 (include)
   cmake/macros/macro_configure_feature.cmake:275 (evaluate_expression)
   cmake/configure/configure_10_mpi.cmake:83 (configure_feature)
   cmake/macros/macro_verbose_include.cmake:19 (include)
   CMakeLists.txt:120 (verbose_include)


-- Configuring incomplete, errors occurred!
See also "/media/ninghui/Aspect/dealii-candi-oneapi/tmp/build/deal.II-v9.5.1/CMakeFiles/CMakeOutput.log".
See also "/media/ninghui/Aspect/dealii-candi-oneapi/tmp/build/deal.II-v9.5.1/CMakeFiles/CMakeError.log".
Failure with exit status: 1
Exit message: There was a problem configuring dealii v9.5.1.

---------------
But I checked that mpicxx exists
$ which mpicxx
/opt/intel/oneapi/mpi/2021.9.0/bin/mpicxx
$ mpicc --version                        
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Any advice would be greatly appreciated.
good luck!
ninghui
Reply all
Reply to author
Forward
0 new messages