[GRASS-user] i.vi.mpi

Ripsime Khachatryan kuli13 at mail.ru
Wed Mar 14 06:20:06 EDT 2012


Hi all

This is my Makefile 


MODULE_TOPDIR = /usr/local/grass-6.4.2svn/
CC=mpicc --static
PGM = i.vi.mpi
LIBES = $(GISLIB) $(GMATHLIB)
DEPENDENCIES = $(GISDEP) $(GMATHDEP)
include $(MODULE_TOPDIR)/include/Make/Module.make
ifneq ($(USE_LARGEFILES),)
 EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
endif
default: cmd
CC=mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so

When I do a make I am getting this:


/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so -I/usr/local/grass-6.4.2svn/include -g -O2 -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/usr/local/grass-6.4.2svn/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
cc: /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so: linker input file unused because linking not done
mpicc -L/usr/local/grass-6.4.2svn/lib/ /usr/local/grass-6.4.2svn/lib/libgrass_gis.6.4.2svn.so -L/usr/local/grass-6.4.2svn/lib -Wl,--export-dynamic -Wl,-rpath-link,/usr/local/grass-6.4.2svn/lib -o /usr/local/grass-6.4.2svn/bin/i.vi.mpi OBJ.x86_64-unknown-linux-gnu/main.o -I/opt/mpich-1.2.7p1/include -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lz -lgrass_gmath.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lz -lm -lz 
make htmlcmd
make[1]: Entering directory `/localuser/ripsime/mpitest'
/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'
make /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html HTMLSRC=/usr/local/grass-6.4.2svn/bin/i.vi.mpi
make[2]: Entering directory `/localuser/ripsime/mpitest'
/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'
if [ "/usr/local/grass-6.4.2svn/bin/i.vi.mpi" != "" ] ; then GISRC=/usr/local/grass-6.4.2svn/demolocation/.grassrc64 GISBASE=/usr/local/grass-6.4.2svn PATH="/usr/local/grass-6.4.2svn/bin:$PATH" LD_LIBRARY_PATH="/usr/local/grass-6.4.2svn/bin:/usr/local/grass-6.4.2svn/lib:/opt/d-cache/dcap/lib:/opt/d-cache/dcap/lib64:/opt/glite/lib:/opt/glite/lib64:/opt/globus/lib:/opt/lcg/lib:/opt/lcg/lib64:/opt/classads/lib64/:/opt/c-ares/lib/" LC_ALL=C /usr/local/grass-6.4.2svn/bin/i.vi.mpi --html-description < /dev/null | grep -v '</body>\|</html>' > i.vi.mpi.tmp.html ; true ; fi
ERROR: G_getenv(): Variable LOCATION_NAME not set
/usr/local/grass-6.4.2svn//tools/mkhtml.sh i.vi.mpi ; mkdir -p /usr/local/grass-6.4.2svn/docs/html ; /usr/bin/install -c -m 644 i.vi.mpi.tmp.html /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html ; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /usr/local/grass-6.4.2svn/docs/html ; fi done 2> /dev/null ; true
make[2]: Leaving directory `/localuser/ripsime/mpitest'
make[1]: Leaving directory `/localuser/ripsime/mpitest'
make mancmd
make[1]: Entering directory `/localuser/ripsime/mpitest'
/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'
make /usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1 MANSRC=/usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html
make[2]: Entering directory `/localuser/ripsime/mpitest'
/usr/local/grass-6.4.2svn//include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/grass-6.4.2svn//include/Make/Rules.make:90: warning: ignoring old commands for target `install'
mkdir -p /usr/local/grass-6.4.2svn/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.2svn sh /usr/local/grass-6.4.2svn//tools/g.html2man /usr/local/grass-6.4.2svn/docs/html/i.vi.mpi.html /usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1 1
/usr/local/grass-6.4.2svn//tools/g.html2man: /usr/local/grass-6.4.2svn//tools/g.html2man: is a directory
make[2]: *** [/usr/local/grass-6.4.2svn/man/man1/i.vi.mpi.1] Error 126
make[2]: Leaving directory `/localuser/ripsime/mpitest'
make[1]: *** [mancmd] Error 2
make[1]: Leaving directory `/localuser/ripsime/mpitest'
make: *** [cmd] Error 2


 and this is my run.sh file



export GISBASE=/localuser/ripsime/grass64_release/dist.x86_64-unknown-linux-gnu
export PATH=$PATH:$GISBASE/bin:$GISBASE/scripts
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GISBASE/lib:/usr/local/grass-6.4.2svn/lib/
export GIS_LOCK=$$
export GRASS_PNGFILE=/tmp/grass6output.png
export GRASS_TRUECOLOR=TRUE
export GRASS_WIDTH=900
export GRASS_HEIGHT=1200
export GRASS_PNG_COMPRESSION=1
export GRASS_MESSAGE_FORMAT=plain
foo=3
 filename=ndvi1-new-$foo
 echo "mpirun -np $foo /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=$filename tmp=1"
#time 
 /opt/mpich-1.2.7p1/bin/mpirun -np $foo /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=$filename tmp=1
exit 0
  When I am running the script I am getting this error:




mpirun -np 3 /usr/local/grass-6.4.2svn/bin/i.vi.mpi viname=ndvi red=outsevanozero.2 nir=outsevanozero.3 vi=ndvi1-new-3 tmp=1
/usr/local/grass-6.4.2svn/bin/i.vi.mpi: error while loading shared libraries: libgrass_gis.6.4.2svn.so: cannot open shared object file: No such file or directory
p0_29144: p4_error: Child process exited while making connection to remote process on wn1.yerphi-cluster.grid.am: 0
p0_29144: (4.289062) net_send: could not write to fd=4, errno = 32




So please any suggestion or help.


Regards,
Ripsime 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120314/9d21b0bc/attachment-0001.html


More information about the grass-user mailing list