[Users] Porting problem on IBM ppc

Hee Il Kim heeilkim at gmail.com
Mon Mar 19 21:49:59 CST 2007


Hi,

I'm glad to inform you that I made a working configuration for IBM pseries
linux system. Of course, it's just a working example that I made from trials
and errors. It should be elaborated further and patched to Cactus by
experts. Some important things are;

System info:
CPU: IBM PowerPC 970
Linux node480 2.6.5-7.139-pseries64 #1 SMP Fri Jan 14 15:41:33 UTC 2005
ppc64 ppc64 ppc64 GNU/Linux
OS: SLES 9
Compilers: IBM XL Fortran Advanced Edition for Linux 9.1, IBM XL C/C++
Advanced Edition for Linux 7.0

Tips:

1. config.guess and config.sub should be updated. I tested those from Fedora
6 (timestamp='2005-04-22') and the latest ones from savannah.gnu.org. Then
Cactus recognized the system architecture as "powerpc64-unknown-linux-gnu"
and required to add the compiler information to
~/Cactus/lib/make/known-architectures/linux-gnu.

2. Simply I modified the original aix and named linux-pseries. And in
.../linux-gnu, I changed linux into linux-pseries, i.e. ^^
# in .../linux-gnu
. $srcdir/known-architectures/linux-pseries

In linux-pseries;

3. The most important thing is that the XL C compiler with "-M" option for
linux does not produce ".u" files as its AIX version did. Instead it
produces ".d" files which contain the makefile info. So I changed the
extension part in linux-pseries file. See the attached files.

4. LIBS=xlf90 is important for successful building.

5. Environment variable OBJECT_MODE is required for 32/64 bit selection.

I found Cactus and Carpet run successfully with this prescription

Again, it's just a working example. I think it's not difficult for you to
elaborate this. Your help would be appreciated.

Thanks so much, Erik!

Hee Il


2007/3/15, Hee Il Kim < heeilkim at gmail.com>:
>
> Thanks Erik,
>
> I was trying to get the latest config.guess and config.sub since last
> night. So I tried the files from the lastest libtool package. Without the
> HOST_MACHINE option, Cactus recognized my system as
> powerpc64-unknown-linux-gnu.
>
> ...
> checking host system type... powerpc64-unknown-linux-gnu
> ...
>
> But failed to identify f90 compiler
>
> ...
> Unknown Linux f90 compiler.
> Please add appropriate information to
>   /home/hmlee/Cactus/lib/make/known-architectures/linux
> and send the updated file to CactusMaint
> ...
>
> So I'm going to make a new known-architecture. But I don't know how to
> name the new architecture file, i.e,
> ~/Cactus/lib/make/know-architectures/???_new_arch_???
>
> It's too tough for me to read out the related Cactus files. Could you tell
> me the naming skeme?
>
> Thanks,
>
> Hee Il
>
> 2007/3/15, Erik Schnetter < schnetter at cct.lsu.edu>:
> >
> > Hee Il,
> >
> > thanks for the detailed report.  By the way, are you using the stable
> > or the development version of Cactus?
> >
> > I'm afraid that it will be difficult or impossible for us to help you
> > in any detail unless we have access to such a machine.  I was hoping
> > that the version numbers and detailed error messages would give us a
> > hint for something that would be easy to correct, but they did not.
> > I describe below what I would try in your case.  I don't know whether
> > this will help you much.
> >
> >
> >
> > I think the proper way to handle your system is to make sure that
> > config.guess recognises it as Linux system.  Apparently, setting
> > HOST_MACHINE does this, although I am no expert with the GNU
> > config.guess.  Updating config.guess may also help.  You could try
> > this; newer versions the files " config.guess" and "config.sub" are
> > available on the web.
> >
> > The next step is to create Cactus known-architecture file for this
> > architecture, which probably should just source known-architectures/
> > linux.  See the file "linux-gnu" as example.
> >
> > The last step is then to add support for xlc to the Linux known-
> > architecture file.  The AIX known-architecture file is an example.
> >
> >
> >
> > However, there may be an easier way.  You can use gcc instead of xlc
> > as compiler.  I suggest a recent version, e.g. a variant of 4.1.  If
> > this is not already installed on your system you can install it
> > yourself.  You have to explicitly enable support for gfortran.  Using
> > gcc 3.x is probably asking for trouble later on, as it may not
> > compile all of Carpet's C++ code (you mentioned Carpet before).  g77
> > also cannot handle some of the Fortran 90 thorns.
> >
> > In this case, you can probably set HOST_MACHINE to a Linux architecture.
> >
> >
> > -erik
> >
> > --
> > Erik Schnetter <schnetter at cct.lsu.edu>
> >
> > My email is as private as my paper mail.  I therefore support encrypting
> >
> > and signing email messages.  Get my PGP key from www.keyserver.net.
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at cactuscode.org
> > http://www.cactuscode.org/mailman/listinfo/users
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cactuscode.org/pipermail/users/attachments/20070320/9507bdcc/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-pseries
Type: application/octet-stream
Size: 5297 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/users/attachments/20070320/9507bdcc/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 616 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/users/attachments/20070320/9507bdcc/attachment-0003.obj 


More information about the Users mailing list