Re: [CMake] MPI Module

2008-09-08 Thread Doug Gregor
On Mon, Sep 8, 2008 at 5:28 PM, Robert Kubrick <[EMAIL PROTECTED]> wrote: > I see. So you mean removing the cache files everytime I change the CXX > variable? > That works as far as I only use mpicxx, but if I want to run a profiled > version of my program I should be able to set a variable to swit

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
On Sep 8, 2008, at 5:50 PM, Alexander Neundorf wrote: On Monday 08 September 2008, Robert Kubrick wrote: I see. So you mean removing the cache files everytime I change the CXX variable? That works as far as I only use mpicxx, but if I want to run a profiled version of my program I should be ab

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > I see. So you mean removing the cache files everytime I change the > CXX variable? > That works as far as I only use mpicxx, but if I want to run a > profiled version of my program I should be able to set a variable to > switch to mpicxx -mpe=mpi

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
I see. So you mean removing the cache files everytime I change the CXX variable? That works as far as I only use mpicxx, but if I want to run a profiled version of my program I should be able to set a variable to switch to mpicxx -mpe=mpianim without regenerating the Makefiles. On Sep 8, 20

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > Nope. I removed the force compiler lines from CMakeLists.txt and set > CXX to mpicxx but the Makefile invokes g++. Did you remove CMakeCache.txt, i.e. start with a fresh build tree ? Otherwise the compiler won't be changed. Alex ___

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
Nope. I removed the force compiler lines from CMakeLists.txt and set CXX to mpicxx but the Makefile invokes g++. On Sep 8, 2008, at 5:08 PM, Alexander Neundorf wrote: On Monday 08 September 2008, Robert Kubrick wrote: I'm having some problems with the MPI module: # # MPI # FIND_PACKAGE(MPI

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > I'm having some problems with the MPI module: > > # > # MPI > # > FIND_PACKAGE(MPI REQUIRED) > INCLUDE(CMakeForceCompiler) > CMAKE_FORCE_CXX_COMPILER(mpicxx "MPI C++ Compiler") > > The code above works. It invokes the mpicc wrapper to compile my

[CMake] MPI Module

2008-09-08 Thread Robert Kubrick
I'm having some problems with the MPI module: # # MPI # FIND_PACKAGE(MPI REQUIRED) INCLUDE(CMakeForceCompiler) CMAKE_FORCE_CXX_COMPILER(mpicxx "MPI C++ Compiler") The code above works. It invokes the mpicc wrapper to compile my MPI project. However I figured there must be a simpler way to run