Re: [CMake] How to compile MPI code

2011-06-24 Thread Dolores Villalobos Ortiz
to compile MPI code Para: "Mª Dolores Villalobos Ortiz" CC: "cmake@cmake.org" Fecha: jueves, 23 de junio, 2011 05:13 On Jun 22, 2011, at 11:11 AM, Mª Dolores Villalobos Ortiz wrote: > Thank you. > > I have tried to compile my code using that version of CMakeLists, but

Re: [CMake] How to compile MPI code

2011-06-22 Thread Dolores Villalobos Ortiz
Thank you. I have tried to compile my code using that version of CMakeLists, but it doesn't work. My program's output is still wrong. This is completely, utterly wrong! # 2.7 was a development version, so you should either specify # 2.6 or 2.8... cmake_minim_required(VERSION 2.7) project(ITK_M

[CMake] Rv: How to compile MPI code

2011-06-22 Thread Dolores Villalobos Ortiz
I use (or try to use) mpicxx. There is an older post in http://www.mail-archive.com/cmake@cmake.org/msg36851.html -- Hm... this is the CMake user list, not the MPI-user list. You're posing your question on the wrong list

Re: [CMake] How to compile MPI code

2011-06-22 Thread Dolores Villalobos Ortiz
>What do you mean with "it doesn't run correctly"? Does it not even start? How do you start your program? -- My program's code is: #include using namespace std; #include "mpi.h" int main( int argc, char * argv[] ) {   int node;   int num_nod

[CMake] How to compile MPI code

2011-06-22 Thread Dolores Villalobos Ortiz
Hi I'm trying to compile a main program (it contains MPI functions) using cmake. I get an executable file (there aren't problems in compilation ), but it doesn't run correctly. If I compile my code using a simple Makefile, it works; but I need to compile it using cmake (that's a prerequisite f