Re: [CMake] How to compile MPI code

2011-06-24 Thread Mª Dolores Villalobos Ortiz
I'll check my system, maybe cmake "can't find" MPI properly. I'm using cmake 2.8.4. and my code works when I compile without cmake (I use those instructions exactly). Thank you --- El jue, 23/6/11, Todd Gamblin escribió: De: Todd Gamblin Asunto: Re: [CMake] How

Re: [CMake] How to compile MPI code

2011-06-22 Thread Todd Gamblin
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 it > doesn't work. My program's output is still wrong. Whether or not mpiexec launches properly isn't something CMake can control. If you are

Re: [CMake] How to compile MPI code

2011-06-22 Thread Mª 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

Re: [CMake] How to compile MPI code

2011-06-22 Thread Jakob van Bethlehem
Hm... this is the CMake user list, not the MPI-user list. You're posing your question on the wrong list. (but how did you compile? Did you use mpicc?) Sincerely, Jakob On 06/22/2011 02:25 PM, Mª Dolores Villalobos Ortiz wrote: >What do you mean with "it doesn't run correctly"? Does it

Re: [CMake] How to compile MPI code

2011-06-22 Thread Michael Wild
On 06/22/2011 12:00 PM, Mª Dolores Villalobos Ortiz wrote: > 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, i

Re: [CMake] How to compile MPI code

2011-06-22 Thread Mª 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

Re: [CMake] How to compile MPI code

2011-06-22 Thread Andreas Naumann
What do you mean with "it doesn't run correctly"? Does it not even start? How do you start your program? Andreas Am 22.06.2011 12:00, schrieb Mª Dolores Villalobos Ortiz: Hi I'm trying to compile a main program (it contains MPI functions) using cmake. I get an

[CMake] How to compile MPI code

2011-06-22 Thread Mª 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