Hi -

You could also try using

 export CHPL_TARGET_COMPILER=mpi-gnu

Assuming you gave MPI configured to use GCC. If that's the case,
if CHPL_TARGET_COMPILER=mpi-gnu when you build Chapel and use
it, you should see mpicc calls as the linker.

Brad had lots of other good ideas for how to troubleshoot this problem.

Cheers,

-michael

On 7/20/16, 6:10 PM, "Lim, Jintack" <[email protected]> wrote:

>Hi GASNet and Chapel community,
> 
>I'm trying to run Chapel with GASNet ofi-conduit.
>I got some link errors last time while I was running "make check" after
>compiled Chapel.
>I got feedback from Paul Hargrove and Greg Titus but I still can't
>resolve it.
>http://paste.ubuntu.com/19312464/
> 
>I set CHPL_LAUNCHER=gasnetrun_mpi as Greg suggested.
>(Paul suggested to try to configure using without-mpi-cc GASNet option,
>but it looks like we need mpi based on the chapel lanucher setting above?)
> 
>Paul said it looks like Chapel is not using mpicc as its linker.
>
>I checked that gasnet_bootstrap_mpi.c was compiled with mpicc while
>building Chapel.
>When building libgasnet-ofi-par.a, gcc is used, but this is the same when
>compiling GASNet only.
> 
>So I wonder if I need to configure Chapel with some flags or should I put
>some link option somewhere?
> 
>Best,
>Jintack
> 
> 
>From: Paul Hargrove [mailto:[email protected]]
>
>Sent: Wednesday, July 13, 2016 6:09 PM
>To: Lim, Jintack <[email protected]>
>Cc: [email protected]; Jeff Hammond <[email protected]>;
>[email protected]
>Subject: Re: [upc-devel] GASNet ofi-conduit in the context of Chapel
> 
>Jintack,
>
>The environment variable GASNET_OFI_SPAWNER is used at application-launch
>to select MPI vs SSH if both were available at build time.  So, it has no
>connection to the link failure.  Your environment variable settings seem
>to me to be correct.
>
> 
>
>The linkage errors seem to indicate that Chapel is not using mpicc as its
>linker (ignoring the $(GASNET_LD) setting).
>
>That is something you will need to take up with the Chapel team if you
>require mpi-based spawning.
>
>The simplest approach to getting past the link problem would be to
>configure using --without-mpi-cc.
>
>Then SSH-based spawning will be your only option and setting of
>GASNET_OFI_SPAWNER will not be needed.
>
> 
>
>If you have a PMI-based spawner (including hydra from mpich or srun from
>SLURM), then you may also be able to launch GASNet applications that way
>(not using the gasnetrun_ofi script).  You might need some additional
>configure options to
> help GASNet locate libpmi - let me know if you need help pursing that
>option.
>
> 
>
>-Paul
>
> 
>
>
> 
>On Wed, Jul 13, 2016 at 5:42 PM, Lim, Jintack <[email protected]>
>wrote:
>
>Hi all,
> 
>When I was compiling a Chapel hello world application on top of GASNet
>ofi-conduit, I got some GASNet
> link errors related to MPI.
>http://paste.ubuntu.com/19312464/
>I got this either I set GASNET_OFI_SPAWNER to mpi or ssh.
>GASNet version that is included in the Chapel source tree is 1.26.0.
> 
>There are instructions to set GASNET environment variables for GASNet-udp
>and ibv conduit in the Chapel
> documentation 
>(http://chapel.cray.com/docs/1.13/usingchapel/multilocale.html), but I
>couldn’t find one for ofi-conduit.
>Could somebody shed some light on how to fix this problem? (such as how
>to set CHPL_LAUNCHER or any
> other GASNET environment variables to fix the link error?)
> 
>What I did is
>- CHPL_COMM=gasnet
>- CHPL_COMM_SUBSTRATE=ofi
>- GASNET_OFI_SPAWNER= mpi or ssh
>-GASNET_SSH_SERVERS=”list of my servers”
> 
>Please let me know if you need further information.
> 
>Best,
>Jintack
> 
> 
>From: Jeff Hammond [mailto:[email protected]]
>
>Sent: Wednesday, July 13, 2016 5:19 PM
>To: Lim, Jintack <[email protected]>
>Cc: [email protected]
>Subject: Re: Chapel on GASNet ofi-conduit
> 
>I had trouble with Gasnet OFI in the context of UPC. You might want post
>this question to the Berkeley UPC list so the Gasnet team sees it. They
>will know the launcher issues better
> than the Chapel team (no disrespect intended).
> 
>
>Jeff 
>
>On Wednesday, July 13, 2016, Lim, Jintack <[email protected]> wrote:
>
>Hi,
> 
>I’m trying to install Chapel using GASNet ofi-conduit. I was able to
>compile Chapel itself, however I couldn’t compile
>hello6-taskpar-dist.chpl because of link errors related to
> MPI.
>Here’s the error message.
>http://paste.ubuntu.com/19312464/
> 
>There are only instructions for GASNet-udp and ibv conduit in the
>documentation 
>(http://chapel.cray.com/docs/1.13/usingchapel/multilocale.html),
> so I wonder how to set environment variables (such as launcher) for ofi
>conduit.
> 
>Any help would be greatly appreciated.
> 
>Best,
>Jintack
> 
>
>
>
>
>
>
>
>-- 
>Jeff Hammond
>[email protected]
>http://jeffhammond.github.io/
>
>
>
>_______________________________________________
>upc-devel mailing list
>[email protected]
>https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/upc-devel
>
>
>
>
>
>
> 
>
>-- 
>Paul H. Hargrove                          [email protected]
>
>Computer Languages & Systems Software (CLaSS) Group
>
>Computer Science Department               Tel: +1-510-495-2352
>
>Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>
>
>
>
>
>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to