Opened 12 years ago

Closed 12 years ago

#371 closed defect (fixed)

pypar_extras not compiling, so anuga_parallel/test_all.py failing.

Reported by: gray Owned by: ole
Priority: normal Milestone:
Component: Appearance and visualisation Version:
Severity: normal Keywords:
Cc:

Description (last modified by steve)

Here are the results from compile_all.py;

-----------------------------------------------
Attempting to compile pypar_extras
-----------------------------------------------
python anuga_setup.py
/nas/mnh/georisk_models/inundation/sandpits/dgray/anuga/anuga_core/source/anuga_parallel
python setup.py install --install-purelib=/nas/mnh/georisk_models/inundation/sandpits/dgray/anuga/anuga_core/source/anuga_parallel --install-platlib=/nas/mnh/georisk_models/inundation/sandpits/dgray/anuga/anuga_core/source/anuga_parallel 
running mpicc -show
/bin/sh: mpicc: command not found
running mpicc -compile_info -link_info
/bin/sh: mpicc: command not found
running mpicc -show;mpicc -echo -c /tmp/tmpMo1Cc6.c -o /tmp/tmpMo1Cc6.o
/bin/sh: mpicc: command not found
/bin/sh: mpicc: command not found

running install
running build
running build_py
copying compile.py -> build/lib.linux-x86_64-2.7/pypar_extras
copying test_pypar_ext.py -> build/lib.linux-x86_64-2.7/pypar_extras
copying anuga_setup.py -> build/lib.linux-x86_64-2.7/pypar_extras
copying pypar_ext.py -> build/lib.linux-x86_64-2.7/pypar_extras
copying __metadata__.py -> build/lib.linux-x86_64-2.7/pypar_extras
copying __init__.py -> build/lib.linux-x86_64-2.7/pypar_extras
running build_ext
building 'pypar_extras.mpiextras' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/python-2.7.2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/python-2.7.2/include/python2.7 -c mpiextras.c -o build/temp.linux-x86_64-2.7/mpiextras.o -fPIC
mpiextras.c:31:17: error: mpi.h: No such file or directory
mpiextras.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘type_map’
mpiextras.c:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘op_map’
mpiextras.c: In function ‘isend_array’:
.
.
.
mpiextras.c:676: error: ‘MPI_ANY_SOURCE’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
Compiled pypar_extras succesfully.

These gives rise to these errors in anuga_parallel/test_all.py;

  File "/nas/mnh/georisk_models/inundation/sandpits/dgray/anuga/anuga_core/source/anuga_parallel/parallel_generic_communications.py", line 178, in communicate_ghosts_asynchronous
    from anuga_parallel.pypar_extras import mpiextras
ImportError: cannot import name mpiextras

Problem seems to be mpicc is not on rhe-compute1.

I agree with Ole, mpicc doesn't seem to be on your machine. Indeed is mpirun available?

Change History (2)

comment:1 Changed 12 years ago by steve

  • Description modified (diff)

comment:2 Changed 12 years ago by gray

  • Resolution set to fixed
  • Status changed from new to closed

mpicc is now on rhe-compute1.

Note: See TracTickets for help on using tickets.