[Trilinos-Users] MPI
Heroux, Michael A
maherou at sandia.gov
Thu Sep 23 20:22:42 MDT 2010
Alireza,
It looks like your compiler definitions are not set to compile an MPI source
file. The Intel C++ compiler is not "MPI-aware" so you need to tell it
where your MPI is installed. You will eventually have a -I
/path/to/my/mpi/include, and then the link line must point to the MPI
libraries. As an alternative, you can have Cmake use the MPI wrappers.
This is described here:
http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt
Mike
On 9/23/10 8:56 PM, "Alireza Nejadmalayeri"
<Alireza.Nejadmalayeri at colorado.edu> wrote:
> Hello,
>
> Without MPI support I can make successfully using the attached cmake configure
> script though after setting TPL_ENABLE_MPI:BOOL=ON, the mpi.h cannot be found:
>
> # make
> /usr/local/bin/cmake -H/root/The_Trilions_Project/trilinos-10.4.1-Source
> -B/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02
> --check-build-system CMakeFiles/Makefile.cmake 0
> /usr/local/bin/cmake -E cmake_progress_start
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/CMakeFiles
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/CMakeFiles/progress
> .marks
> make -f CMakeFiles/Makefile2 all
> make[1]: Entering directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> make -f packages/teuchos/src/CMakeFiles/teuchos.dir/build.make
> packages/teuchos/src/CMakeFiles/teuchos.dir/depend
> make[2]: Entering directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> cd /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02 &&
> /usr/local/bin/cmake -E cmake_depends "Unix Makefiles"
> /root/The_Trilions_Project/trilinos-10.4.1-Source
> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/sr
> c
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/sr
> c/CMakeFiles/teuchos.dir/DependInfo.cmake --color=
> Scanning dependencies of target teuchos
> make[2]: Leaving directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> make -f packages/teuchos/src/CMakeFiles/teuchos.dir/build.make
> packages/teuchos/src/CMakeFiles/teuchos.dir/build
> make[2]: Entering directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> /usr/local/bin/cmake -E cmake_progress_report
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/CMakeFiles
> [ 0%] Building CXX object
> packages/teuchos/src/CMakeFiles/teuchos.dir/Teuchos_BLAS.cpp.o
> cd
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/sr
> c && /opt/intel/Compiler/11.0/074/bin/intel64/icpc
> -DTEUCHOS_LIB_EXPORTS_MODE -g
> -I/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02
> -I/root/The_Trilions_Project/trilinos-10.4.1-Source
> -I/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/
> src -I/root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src
> -o CMakeFiles/teuchos.dir/Teuchos_BLAS.cpp.o -c
> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src/Teuchos
> _BLAS.cpp
> /usr/local/bin/cmake -E cmake_progress_report
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/CMakeFiles
> [ 0%] Building CXX object
> packages/teuchos/src/CMakeFiles/teuchos.dir/Teuchos_CTimeMonitor.cpp.o
> cd
> /root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/sr
> c && /opt/intel/Compiler/11.0/074/bin/intel64/icpc
> -DTEUCHOS_LIB_EXPORTS_MODE -g
> -I/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02
> -I/root/The_Trilions_Project/trilinos-10.4.1-Source
> -I/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02/packages/teuchos/
> src -I/root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src
> -o CMakeFiles/teuchos.dir/Teuchos_CTimeMonitor.cpp.o -c
> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src/Teuchos
> _CTimeMonitor.cpp
> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src/Teuchos
> _MPIComm.hpp(41): catastrophic error: could not open source file "mpi.h"
> #include "mpi.h"
> ^
>
> compilation aborted for
> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src/Teuchos
> _CTimeMonitor.cpp (code 4)
> make[2]: ***
> [packages/teuchos/src/CMakeFiles/teuchos.dir/Teuchos_CTimeMonitor.cpp.o] Error
> 4
> make[2]: Leaving directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> make[1]: *** [packages/teuchos/src/CMakeFiles/teuchos.dir/all] Error 2
> make[1]: Leaving directory
> `/root/The_Trilions_Project/trilinos-10.4.1__Install_mpi_02'
> make: *** [all] Error 2
>
>
>
>
> Any help would be appreciated.
>
> Thank you,
> alireza
More information about the Trilinos-Users
mailing list