Re: [ppl] error compiling charm-6.2.2 for bluegenep-xlc

From: Hannes Loeffler (Hannes.Loeffler_at_stfc.ac.uk)
Date: Thu Oct 28 2010 - 04:18:33 CDT

Thanks a lot!

I deleted the two parameters as per you diff and the library compiles
fine. NAMD seems to run well too.

Cheers,
Hannes.

On Wed, 27 Oct 2010 23:14:34 -0500
Phil Miller <mille121_at_illinois.edu> wrote:

> Unfortunately, the DCMF API changed, with no change in the version
> macros that we can test against in the code. The stable code was
> updated to reflect the newer API version, on the assumption that most
> sites would install that, but it means that it will break on systems
> with the older version.
>
> I've copied the commit that did this below. You may be fine to just
> back it out.
>
> commit 1bc95c9668fbd09efe38abcd16fd5789d81b9e66
> Author: Phil Miller <phil_at_login5.intrepid.alcf.anl.gov>
> Date: Fri Mar 12 00:11:58 2010 -0600
>
> BGP: Update CmiDirect to use newer DCMF API
>
> Release V1R4M1_460_2009-091110P of DCMF adds a few new arguments
> to DCMF_Manytomany. This release is now the default on Surveyor, and
> available Intrepid. Update CmiDirect to use the new API, and add a
> release note about the need to specify which DCMF driver version to
> build against.
>
> Ideally, this would have been covered by conditional compilation
> based on DCMF_VERSION_*, but those macros are the same under both the
> old and new driver versions.
>
> diff --git a/CHANGES b/CHANGES
> index 5d298ce..605d35c 100644
> --- a/CHANGES
> +++ b/CHANGES
> @@ -118,6 +118,9 @@ Blue Gene/L
>
> Blue Gene/P
> - Added routines for measuring performance counters on BG/P.
> + - Updated to support latest DCMF driver version. On ANL's Intrepid,
> you may
> + need to set
> BGP_INSTALL=/bgsys/drivers/V1R4M1_460_2009-091110P/ppc in your
> + environment. This is the default on ANL's Surveyor.
>
> Cray XT
> - cputopology information is now available on XT3/4/5
> diff --git a/src/arch/bluegenep/manytomany.c
> b/src/arch/bluegenep/manytomany.c index 3138fb7..154550c 100644
> --- a/src/arch/bluegenep/manytomany.c
> +++ b/src/arch/bluegenep/manytomany.c
> @@ -213,7 +213,9 @@ void CmiDirect_manytomany_start ( void *
> h, & handle->send_request[tag],
> handle->m2m_scb_done[tag],
> DCMF_MATCH_CONSISTENCY,
> + 0,
> tag,
> + NULL,
> handle->m2m_srankIndex[tag],
> handle->m2m_sndbuf[tag],
> handle->m2m_sndlens[tag],
>
>
> On Tue, Oct 26, 2010 at 14:22, <hannes.loeffler_at_stfc.ac.uk> wrote:
> > Hi,
> >
> > I get the following error message when compiling charm-6.2.2 for
> > bluegenep-xlc.
> >
> > ./bin/charmc   -o machine.o  -DFOR_CPLUS=1 machine.c
> > "manytomany.c", line 219.28: 1506-280 (W) Function argument
> > assignment between types "unsigned int*" and "unsigned int" is not
> > allowed. "manytomany.c", line 220.24: 1506-280 (W) Function
> > argument assignment between types "unsigned int*" and "char*" is
> > not allowed. "manytomany.c", line 224.23: 1506-280 (W) Function
> > argument assignment between types "unsigned int" and "unsigned
> > int*" is not allowed. "manytomany.c", line 225.29: 1506-099 (S)
> > Unexpected argument. Fatal Error by charmc in
> > directory /gpfs1/stfc-home/hhl/usr/src/NAMD_2.7_Source/charm-6.2.2/bluegenep-xlc/tmp
> > Command /opt/ibmcmp/vac/bg/9.0/bin/bgxlc -qcpluscmt -qhalt=e
> > -I../bin/../include -I/bgsys/drivers/ppcfloor/comm/include
> > -I/bgsys/drivers/ppcfloor/arch/include
> > -I/soft/apps/zlib-1.2.3/include -I../bin/../include -D__CHARMC__=1
> > -DFOR_CPLUS=1 -c machine.c -o machine.o returned error code 1
> > charmc exiting... make: *** [../lib/libconv-cplus-n.a] Error 1
> >
> > Obviously manytomany.c tries to call DCMF_Manytomany with 15
> > arguments while the prototype in dcmf_multisend.h has only 13 here:
> >
> >  int DCMF_Manytomany         (DCMF_Protocol_t   * registration,
> >                               DCMF_Request_t    * request,
> >                               DCMF_Callback_t     cb_done,
> >                               DCMF_Consistency    consistency,
> >                               unsigned            connection_id,
> >                               unsigned            rindex,
> >                               const char              * sndbuf,
> >                               unsigned          * sndlens,
> >                               unsigned          * sdispls,
> >                               unsigned          * sndcounters,
> >                               unsigned          * ranks,
> >                               unsigned          * permutation,
> >                               unsigned            nranks);
> >
> >
> > Cheers,
> > Hannes.

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 05:23:20 CST