Hi Nikhil,

does this only happen when invoked from aprun with the MPI version of X10RT, or does it happen with the sockets version of X10RT as well?

I would guess that the way that X10 reads environment variables on standard Linux (line 131 of x10.runtime/src-cpp/x10/lang/RuntimeNatives.cc - see http://linux.die.net/man/5/environ) may not work correctly on Cray Linux. I don't know the correct way to access the user environment on a Cray - sorry.

Are you able to debug the executable, to see whether the array char** environ is populated?

Cheers,

Josh

On 06/11/13 16:25, Nikhil Padmanabhan wrote:
Hi Josh,

Thanks! The issue I was having was actually compiling X10 (and the MPI backend); that appears to default to mpicxx as the compiler. I worked around it by linking "cc" (the MPI wrapper) to mpicc.

I can now successfully build the HelloWorld.x10 example as :
   x10c++ -x10rt mpi ./HelloWorldTest.x10

(I changed the x10rt_mpi.properties to use the correct compiler).

However, when I try and run it :

x10/Samples> aprun -n 1 -N 1 ./HelloWorld
HelloWorld: x10/lang/RuntimeNatives.cc:144: static x10::util::HashMap<x10::lang::String*, x10::lang::String*>* x10::lang::RuntimeNatives::loadenv(): Assertion `val!=__null' failed. _pmiu_daemon(SIGCHLD): [NID 06022] [c7-3c1s1n2] [Tue Nov 5 20:58:07 2013] PE RANK 0 exit signal Aborted

(This is on a Cray XC30)

Any thoughts?

Thanks!
-- Nikhil



---------------------------------
Nikhil Padmanabhan
nikhil.padmanab...@yale.edu <mailto:nikhil.padmanab...@yale.edu>


On Tue, Nov 5, 2013 at 11:41 PM, Josh Milthorpe <josh.miltho...@anu.edu.au <mailto:josh.miltho...@anu.edu.au>> wrote:

    Hi Nikhil,

    you can tell the X10 compiler to use a different postcompiler
    using the -post option.  (To see the format specification of this
    and other allowed command line parameters, just run x10c++ without
    any parameters.)

    For example, you could run

    $ x10c++ -x10rt mpi -post 'custom_mpicxx'

    To use custom_mpicxx instead of the default mpicxx.

    Once compiled with MPI, native X10 programs are just like standard
    executables, so you can invoke them with mpiexec, mpirun, or
    whatever MPI program you would normally use.

    Cheers,

    Josh

    http://cs.anu.edu.au/~Josh.Milthorpe/
    <http://cs.anu.edu.au/%7EJosh.Milthorpe/>

    On 06/11/13 15:17, Nikhil Padmanabhan wrote:
    Hello,

    I've been playing with X10, and wanted to compile it with the MPI
    backend. However, the MPI compilers on the system I'm running on
    are wrapped into cc (i.e. mpicxx etc do not exist). Is there a
    way to get the build process to use a different MPI c++ compiler?
    I tried setting the MPICXX environment variable, but that seemed
    to have no effect...

    I presume I'd also run into the same issue when attempting to
    compile?

    Thanks!
    -- Nikhil
    ---------------------------------
    Nikhil Padmanabhan
    nikhil.padmanab...@yale.edu <mailto:nikhil.padmanab...@yale.edu>


    
------------------------------------------------------------------------------
    November Webinars for C, C++, Fortran Developers
    Accelerate application performance with scalable programming models. Explore
    techniques for threading, error checking, porting, and tuning. Get the most
    from the latest Intel processors and coprocessors. See abstracts and 
register
    http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk


    _______________________________________________
    X10-users mailing list
    X10-users@lists.sourceforge.net  <mailto:X10-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/x10-users


    
------------------------------------------------------------------------------
    November Webinars for C, C++, Fortran Developers
    Accelerate application performance with scalable programming
    models. Explore
    techniques for threading, error checking, porting, and tuning. Get
    the most
    from the latest Intel processors and coprocessors. See abstracts
    and register
    http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
    _______________________________________________
    X10-users mailing list
    X10-users@lists.sourceforge.net
    <mailto:X10-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/x10-users




------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk


_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to