Hi Deepak --

My response was going to be similar, though I was going to wonder whether 
setting CHPL_COMM_SUBSTRATE to 'portals4' might be sufficient to enable 
portals 4 support.  I think Sung's probably right that this is overly 
optimistic, though, and expect that you'd need to (at the very least) 
throw the --enable-portals4 flag to GASNet's configure script (which the 
Makefile Sung points you to calls).

If that doesn't work, the GASNet documentation that you'll want to refer 
to is in third-party/gasnet/GASNet-*/portals4-conduit/README as well as 
the README in the parent directory.  As far as I know, you're the first 
Chapel user to use GASNet over portals4.

-Brad


On Fri, 11 Jul 2014, Sung-Eun Choi wrote:

> Hi Deepak,
>
> That error happens because the gasnet build failed.  There an
> unfortunate quirk in our build system that continues building the
> runtime after a third-party build fails.  I can't really remember the
> exact details of that right now, but this is likely what you are
> running into.
>
> But the root of the problem is that 'portals' refers to the original
> portals interface on Cray XT systems for the SeaStar network.  I'm
> going to assume here that you were thinking it is the new portals4
> interface.  Gasnet does have (beta?) support for portals4, but we have
> never build Chapel using that support.  In theory, the gasnet build
> should work, but our Makefiles are not set up for it.  You might be
> able to go into $CHPL_HOME/third-party/gasnet/Makefile and add
> whatever appropriate flags are necessary for a gasnet portals build.
> Probably gasnet documentation can give you info on that.
>
> Let me know if that works for you.
>
> -- Sung
>
> On Fri, Jul 11, 2014 at 09:34:55PM +0000, Majeti, Deepak wrote:
>> Hi,
>>
>> I want to build Chapel on top of gasnet + portals. I set the following 
>> variables
>> CHPL_COMM=gasnet
>> CHPL_COMM_SUBSTRATE=portals
>> but the build fails with the following error
>>
>> ***** src/comm/ *****
>> ***** src/comm/gasnet/ *****
>> gcc -c -std=c99 -MMD -MP -O3 -DCHPL_TASKS_MODEL_H=\"tasks-fifo.h\" 
>> -DCHPL_THREADS_MODEL_H=\"threads-pthreads.h\" -DCHPL_WIDE_POINTER_STRUCT 
>> -DCHPL_OPTIMIZE -DUSE_LOCKS -DONLY_MSPACES -DMSPACES   -std=gnu89  
>> -DGASNET_NEEDS_MAX_SEGSIZE -I. -I../../../include/localeModels/flat 
>> -I../../../include/localeModels -I../../../include/comm/gasnet 
>> -I../../../include/comm -I../../../include/tasks/fifo 
>> -I../../../include/threads/pthreads -I../../../include/comp-gnu 
>> -I../../../include/linux64 -I../../../include -I../../../include/qio 
>> -I../../../include/atomics/intrinsics -I../../../include/mem/dlmalloc 
>> -I/local/dmajeti/chapel-1.9.0/runtime/../third-party/utf8-decoder  
>> -I/local/dmajeti/chapel-1.9.0/runtime/../third-party/dlmalloc/include 
>> -I../../../include/hwloc/none -o 
>> gen/linux64.gnu.loc-flat.portals.fast.tasks-fifo.tmr-generic.mem-dlmalloc.atomics-intrinsics.none.gmp-none.hwloc-none.re-none.wide-struct.fs-none/comm-gasnet.o
>>  comm-gasnet.c
>> comm-gasnet.c:8:20: fatal error: gasnet.h: No such file or directory
>> #include "gasnet.h"
>>
>> It builds fine when I use "CHPL_COMM_SUBSTRATE=udp".
>> I noticed that the build statement does not include the path to the gasnet 
>> installation in case of "portals" while it exists for "udp"
>> Am I missing some other flag for portals?
>> Thanks!
>> --
>> Deepak Majeti
>> Co-op External Research
>> AMD
>>
>
>> ------------------------------------------------------------------------------
>
>> _______________________________________________
>> Chapel-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/chapel-users
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Chapel-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-users
>

------------------------------------------------------------------------------
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to