Personal tools
You are here: Home cm Wiki Building cm on hpcx
Views
FrontPage >>

Building cm on hpcx

last edited 4 years ago by snie007
To make cmiss on hpcx, first get your login and account details. 

This can be done by contacting the relavant PI for details and filling out the form at:
www.hpcx.ac.uk

Once you have logged on create a directory for cmiss files i.e. mycmiss
create the cvs tunnel as descibed by karl.
 You will need to change the pot number from 8888 to 4444 because this works
also when setting up cvs use
export CVSROOT=cmiss-cvs:/cvs/cmiss
instead of:
export CVSROOT=/product/cmiss/cvs</tt>

then 
cvs out:
  linear_solvers
  perl_interpreter
  sqp
  cm
  cellml
  utilities
  lsoda
  gx

into your mycmiss directory

set up your CMISS_ROOT definitions

as ksh need to use
export CMISS_ROOT=/hpcx/home/e17/e17/USERNAME/mycmiss


In linear_solvers, lsoda, sqp and perl_interpreter use gmake ABI=32 OPT=true first.
you should now be able to build the 32 bit cm.

64 bit cm is more challenging as you need a 64 bit version of perl.
test if you are using an appropriate perl executable by runnining 'perl -V' which will report 
USE_64_BIT_ALL in "Compile-time
options" when run with the '-V' option.

Otherwise define cmiss 64 bit perl
setup 64 bit perl link up:
export CMISS64_PERL=/usr/opt/perl5/bin/perl_64bit

and compile all the componets again with
gmake ABI=64 OPT=true

you should now be able to compile cm64

the current installation does not have cellml
simply cvs out the cellml files

and use: 'gmake all' to build otherwise it simply gives you an unhelpful help file.

--------------Potnetial problems-------------------------:

There is a chance that building cellm gives you an error:

could not find DIR_A/perl_interpreter/source/perl_interpreter.h

Where DIR_A could be anything

(This can happen when you have copied files around a bit. )

to fix this you can manually change

/home/snie007/myCmiss/cellml/cmiss/obj/i686-linux/libCMISSCellML.depend

to point to the correct perl_interpreter.h file (to find simply search the file for DIR_A and replace with the correct cmiss root)

NOTE: you may need to make the change for each operating system.

---------------------------------------------------------

then return to cm and rebuild

And you should be away.

Testing current build:
CVS out example tree. Then run example tree on each veriosn of cm.
If you have errors with def win you have not checked out the gx lib

to run test all versions of all the examples run

  ./test_tree.pl

from examples/common/cmiss_type1/.  (The '-s aix' option should be the default
on AIX).


when building on itanium make sure that when builing linear solvers in the pesence ofMKL