charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Aaron Becker <abecker3 AT illinois.edu>
- To: Fernando Stump <fernando.stump AT gmail.com>
- Cc: Charm Mailing List <charm AT cs.illinois.edu>
- Subject: Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init
- Date: Fri, 9 Sep 2011 13:57:00 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
The way you're compiling looks ok, and you don't need to call MPI_Init
at all.. Make sure driver is declared like this:
extern "C" void driver(void)
and if you have problems, try referring to the globalExample
application in the examples directory, as it does use MPI calls
directly.
Aaron
On Fri, Sep 9, 2011 at 11:52 AM, Fernando Stump
<fernando.stump AT gmail.com>
wrote:
> Hi,
>
> Again "I'm using ParFUM to parallelize a C++ FEM code called yafeq" and I
> need to use MPI or AMPI commands together with FEM_ commands
>
> When I try to use MPI commands on the driver I get this error
>
>
>
> ------------- Processor 0 Exiting: Called CmiAbort ------------
> Reason: Cannot call MPI routines before AMPI is initialized.
>
> Fatal error on PE 0> Cannot call MPI routines before AMPI is initialized.
>
>
>
>
> Where should I call my MPI_Init(). I have the feeling that charmc need to
> be instructed to do so by using compiling flags. I'm compiling the code
> with cmake and the following flags
>
> CMAKE_CXX_COMPILER
> /Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/charmc
> CMAKE_CXX_FLAGS -language ParFUM -module netfem
> CMAKE_CXX_FLAGS_DEBUG -g -language ParFUM -module netfem
>
> Am I missing something?
>
> Thanks
> Fernando
> _______________________________________________
> charm mailing list
> charm AT cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/charm
> _______________________________________________
> ppl mailing list
> ppl AT cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/ppl
>
- [charm] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Aaron Becker, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Aaron Becker, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Aaron Becker, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Fernando Stump, 09/09/2011
- Re: [charm] [ppl] Where to call MPI_Init or AMPI_Init, Aaron Becker, 09/09/2011
Archive powered by MHonArc 2.6.16.