MP_CHILD

10 views
Skip to first unread message

Lewis Flanagan

unread,
Dec 12, 2010, 10:42:38 AM12/12/10
to coms49...@googlegroups.com
Hey,

When I try running something with C++ backend, I get the following error message:

"0: xlupc transport: missing environment variable: MP_CHILD"

What am I doing wrong?

Java backend works fine.

Martha Kim

unread,
Dec 12, 2010, 4:21:19 PM12/12/10
to coms49...@googlegroups.com
Hi Lewis,

There's not much to go on here.  We need more info to help you debug.  Please include the code you're running (or better yet a small program that exhibits the same behavior), the compile command you're using (or Makefile), the command you're running when you see this error, and the environment?

Thanks,
Martha

Lewis Flanagan

unread,
Dec 12, 2010, 5:19:36 PM12/12/10
to coms49...@googlegroups.com
Yay, I should have given you way more information. I'd just gotten up when I wrote that so my brain probably wasn't on all the way.

This is on the three musketeers cluster. I'm using x10c++ to compile. That works fine. 

I get the same error message for every program I run, so a simple "hello world" program will do fine.

To run I type 
                       ./a.out

I've also tried
                       srun ./a.out

I assume there is something very basic I'm doing wrong. I've looked through http://docs.codehaus.org/display/XTENLANG/X10+Application+Development and didn't see any thing helpful, though there is a lot in there I don't understand. My background in command line and unix is fairly limited. 

Martha Kim

unread,
Dec 12, 2010, 7:36:46 PM12/12/10
to coms49...@googlegroups.com
Hi Lewis,

You are probably failling to link with some necessary libraries when you compile.  Try using the commands from this makefile.  The page you linked to describes what the -n and -N flags do for srun.

Let us know if you continue to have trouble.

Martha

APP=YourProgramHere
X10_PATH=~vj/x1021/trunk/x10.dist/bin/

all: run

.SUFFIXES: .x10 .mpi
.x10.mpi:
$(X10_PATH)/x10c++ -t -v -report postcompile=1 -o $@ -x10rt mpi -post "# # -lpmi #" -optimize $<

run: ./$(APP).mpi
srun -N2 -n2 $<

clean:
rm -fr *.mpi *.sock *.cc *.h *.inc

Lewis Flanagan

unread,
Dec 13, 2010, 11:09:47 AM12/13/10
to coms49...@googlegroups.com
Ok, I'm still having trouble getting this to run. I'm camped out in the computer science area common room so if you have a free minute, let me know.
Reply all
Reply to author
Forward
0 new messages