Re: [CMake] CMake + MPI

2015-09-09 Thread Chuck Atkins
> > The only exception to that (which I am aware of) is if you are on a CRAY > system where the MPI (and BLAS and LAPACK) are baked into the compiler > wrappers (cc, ftn, etc). In those situations, you actually do not want to > run find_package(MPI) or it will throw errors. > Not true. The

Re: [CMake] CMake + MPI

2015-09-09 Thread Tim Gallagher
Message - From: "Chuck Atkins" <chuck.atk...@kitware.com> To: "tim gallagher" <tim.gallag...@gatech.edu> Cc: "Andreas Naumann" <andreas-naum...@gmx.net>, cmake@cmake.org Sent: Wednesday, September 9, 2015 11:11:27 AM Subject: Re: [CMake] CMake + M

Re: [CMake] CMake + MPI

2015-09-08 Thread Andreas Naumann
Hi Nico, I just use find_package(MPI REQUIRED) and use the given MPI_CXX_LIBRARIES and MPI_CXX_INCLUDE_PATH. Recent mpi wrappers should support support interspection. Regards, Andreas Am 08.09.2015 um 13:01 schrieb Nico Schlömer: Hi everyone, When it comes to compiling and linking, the MPI

[CMake] CMake + MPI

2015-09-08 Thread Nico Schlömer
Hi everyone, When it comes to compiling and linking, the MPI world is quite a mess. Sometimes, vendors make you link and include certain libraries/directories, sometimes you are supposed to simply use a compiler wrapper, often both. What's the recommended way of dealing with MPI in CMake? Do you

Re: [CMake] CMake + MPI

2015-09-08 Thread Tim Gallagher
- From: "Andreas Naumann" <andreas-naum...@gmx.net> To: cmake@cmake.org Sent: Tuesday, September 8, 2015 8:07:38 AM Subject: Re: [CMake] CMake + MPI Hi Nico, I just use find_package(MPI REQUIRED) and use the given MPI_CXX_LIBRARIES and MPI_CXX_INCLUDE_PATH. Recent mpi wrapper