charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Jim Edwards <jedwards AT ucar.edu>
- To: Eduardo <erocha.ssa AT gmail.com>
- Cc: charm AT cs.uiuc.edu, Gengbin Zheng <zhenggb AT gmail.com>
- Subject: Re: [charm] [ppl] ampi: MPI_Info_dup fails
- Date: Wed, 13 Jul 2011 09:08:56 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
On Wed, Jul 13, 2011 at 8:49 AM, Jim Edwards <jedwards AT ucar.edu> wrote:
On Wed, Jul 13, 2011 at 7:49 AM, Eduardo <erocha.ssa AT gmail.com> wrote:Jim,
Try to link with this option:
-Wl,--allow-multiple-definition
Eduardo
Well, this doesn't appear to be a link step:
/opt/cray/mpt/4.0.3/xt/seastar/mpich2-gnu/include/mpi.h:785:5: error: conflicting types for 'AMPI_Alloc_mem'
/contrib/charm/6.2/gnu/mpi-crayxt/bin/../include/mpi.h:701:5: note: previous declaration of 'AMPI_Alloc_mem' was here
Fatal Error by charmc in directory /glade/home/jedwards/src/charm-6.2/mpi-crayxt/tmp/libs/ck-libs/ampi/romio/adio/common
Command cc -I/contrib/charm/6.2/gnu/mpi-crayxt/bin/../include -D__CHARMC__=1 -DFORTRANUNDERSCORE -DHAVE_ROMIOCONF_H -I/contrib/charm/6.2/gnu/mpi-crayxt/include/ -I/glade/home/jedwards/src/charm-6.2/mpi-crayxt/tmp/libs/ck-libs/ampi/romio/adio/common/../include -I../include -O -c ad_close.c -o ad_close.o returned error code 1
I tried adding it to the CFLAGS to no avail.
The problem is that ampicc (or charmc) is compiling with cc on a cray which includes all of the underlying mpi include paths. In each of the romio subdirectories I had to add a -cc gcc to the CFLAGS. I also had to add a -I../../include to the INCLUDE_DIR so that it could fine mpio.h
- [charm] ampi: MPI_Info_dup fails, Jim Edwards, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Gengbin Zheng, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Gengbin Zheng, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Eduardo, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Eduardo, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/13/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Gengbin Zheng, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Jim Edwards, 07/12/2011
- Re: [charm] [ppl] ampi: MPI_Info_dup fails, Gengbin Zheng, 07/12/2011
Archive powered by MHonArc 2.6.16.