[Trilinos-Users] MPI
Heroux, Michael A
maherou at sandia.gov
Thu Sep 23 20:50:05 MDT 2010
OK, but somehow Cmake is getting set to use icpc, but has no include
directory information. It is probably best to send your whole cmake
command.
Mike
On 9/23/10 9:35 PM, "Alireza Nejadmalayeri"
<Alireza.Nejadmalayeri at colorado.edu> wrote:
> Mike,
>
> Thanks for quick response. I have already set the MPI base installation
> directory as:
>
> -D MPI_BASE_DIR:PATH=/usr/local/lam-7.1.4 \
>
> Thank you,
> alireza
>
>
> ---- Original message ----
>> Date: Thu, 23 Sep 2010 20:22:42 -0600
>> From: "Heroux, Michael A" <maherou at sandia.gov>
>> Subject: Re: [Trilinos-Users] MPI
>> To: "Alireza Nejadmalayeri"
>> <Alireza.Nejadmalayeri at colorado.edu>,"trilinos-users at software.sandia.gov"
>> <trilinos-users at software.sandia.gov>
>>
>> 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/progre
>>> ss
>>> .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/teucho
>>> s/
>>> 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/Teuch
>>> os
>>> _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/teucho
>>> s/
>>> 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/Teuch
>>> os
>>> _CTimeMonitor.cpp
>>> /root/The_Trilions_Project/trilinos-10.4.1-Source/packages/teuchos/src/Teuch
>>> os
>>> _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/Teuch
>>> os
>>> _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
>>
>>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list