[Pkg-scicomp-devel] Re: [xmds-devel] Debian xmds package ready to go

Christian T. Steigies cts at debian.org
Thu Nov 30 15:53:44 CET 2006


On Thu, Nov 30, 2006 at 02:38:57PM +0100, Rafael Laboissiere wrote:
> * Graham Dennis <graham.dennis at anu.edu.au> [2006-11-30 22:11]:
> 
> > Looking at the logs, it looks to be a difference between the MPI  
> > distribution you are using and others. For some, you can invoke mpicc  
> > to compile C++ source files (such as the files generated by XMDS),  
> > however for others you need to execute mpicxx, mpic++ or something  
> > similar. You can override the name of the MPI compiler used by  
> > creating a file ~/.xmds/xmds.prefs with the line:
> > MPICC=mpicxx
> > (or mpic++, etc).
> > 
> > Perhaps the best solution might be to change the default for MPICC in  
> > XMDS from mpicc to mpic++.
> 
> Simply building the package with --with-mpi-compiler=mpicxx fixed the
> problem.  Both kubo and highdim examples work now.  Version 1.5.3-6 of the
> Debian package is now ready for release.  It is waiting for ftp-admin
> approval in the Debian NEW queue (http://ftp-master.debian.org/new.html).

Cool, I'll give that a try. But we are having a different(?) problem 
here with our first steps building our own xmds files. It is probably an
error in the xmds files, but while testing the lorenz example, I noted this
odd behaviour. When xmds is run from Rafael's Makefile, it compiles fine,
however when I call xmds manually on the same machine with the same input
file, it fails. It calls the C++ compiler with a different name, which I
don't understand, sometimes it omits the fftw library, the library paths are
different, can somebody explain that or do I have to run xmds from a
Makefile?

steigies at batdaf:~/debian/xmds/build/examples>make lorenz.run
xmds lorenz.xmds
This is xmds, version 1.5-3
Copyright 2000-2004 Greg Collecutt, Joseph Hope, Paul Cochrane and others
xmds is available from http://www.xmds.org

field name defaulting to 'main'
Output file name defaulting to 'lorenz.xsil'
compiling ...
        g++   -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -o lorenz lorenz.cc -I. 
-I/usr/lib/mpich/include/ -lm  -lxmds -L.  -lfftw

lorenz ready to execute
mv lorenz lorenz.run
steigies at batdaf:~/debian/xmds/build/examples>xmds lorenz.xmds
This is xmds, version 1.5-3
Copyright 2000-2004 Greg Collecutt, Joseph Hope, Paul Cochrane and others
xmds is available from http://www.xmds.org

field name defaulting to 'main'
Output file name defaulting to 'lorenz.xsil'
compiling ...
        x86_64-linux-gnu-g++   -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -o lorenz lorenz.cc -I/usr 
-lm  -lxmds -L/usr  -lfftw
lorenz.cc: In function 'float XMDSSwapFloat(float)':
lorenz.cc:221: error: '_main_main_index_pointer' was not declared in this scope
lorenz.cc: In function 'double XMDSSwapDouble(double)':
lorenz.cc:227: error: '_main_main_index_pointer' was not declared in this scope
compilation failed.

Christian



More information about the Pkg-scicomp-devel mailing list