Difference between revisions of "BCCD:PowerPC"

From Earlham CS Department
Jump to navigation Jump to search
(move regression testing to BCCD:Regression_Testing)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The BCCD, or Bootable Cluster CD, is a diskless cluster solution "created to facilitate ''instruction'' of parallel computing aspects and paradigms."  More information about the BCCD can be obtained from [http://bccd.cs.uni.edu/ bccd.cs.uni.edu], as well as from the BCCD's [http://bccd.cs.uni.edu/cgi-bin/twiki/view main wiki], which this page is meant to complement.  This page serves generally as an ongoing summation of [http://cs.earlham.edu/~tmcnulty/ Tobias McNulty]'s work on the BCCD for PowerPC.
+
The BCCD, or Bootable Cluster CD, is a diskless cluster solution "created to facilitate ''instruction'' of parallel computing aspects and paradigms."  More information about the BCCD can be obtained from [http://bccd.cs.uni.edu/ bccd.cs.uni.edu], as well as from the BCCD's [http://bccd.cs.uni.edu/cgi-bin/twiki/view main wiki], which this page is meant to complement.
  
 
=Building the BCCD on PowerPC=
 
=Building the BCCD on PowerPC=
Line 5: Line 5:
 
'''See also:''' [http://hermes.osuosl.org/nucleus/bccd.php BCCD weblog]
 
'''See also:''' [http://hermes.osuosl.org/nucleus/bccd.php BCCD weblog]
  
==Setting Up Your Build Environment==
+
The instructions that formerly lived here have been replaced by the [[Building the BCCD|generic build instructions]].
Base System: [http://www.debian.org/ Debian GNU/Linux] testing with development tools.  The Debian installer can be netbooted on most NewWorld PowerMacs.  See the PowerPC Kernel Archives' [http://hermes.ppckernel.org/wiki/Mac_Netboot Mac netboot] page for instructions.
 
 
 
To setup your Debian environment, download [http://hermes.osuosl.org/~tmcnulty/bccd-dpkg-selections <code>bccd-dpkg-selections</code>] and run <code>dpkg --set-selections < bccd-dpkg-selections</code> then <code>apt-get dselect-upgrade</code>:
 
 
 
<pre>
 
su -
 
/* enter root pass */
 
wget http://hermes.osuosl.org/~tmcnulty/bccd-dpkg-selections
 
dpkg --set-selections < bccd-dpkg-selections
 
apt-get dselect-upgrade
 
</pre>
 
 
 
==Building the BBC-PPC ISO==
 
<pre>
 
/* Check out the cvs tree anonymously */
 
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ login
 
/* hit return when prompted for a password */
 
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ co bccd
 
 
 
/* OR: Check out the cvs tree with a real user account */
 
export CVS_RSH=ssh
 
export CVSROOT=username@bccd.cs.uni.edu:/var/lib/cvs
 
cvs co bccd
 
 
 
/* execute the build */
 
export singularity_GARCH=ppc
 
cd bccd/meta/lnx-bbc
 
make build
 
/* wait a long, long, long time */
 
</pre>
 
  
 
=TODO List for BCCD/PowerPC=
 
=TODO List for BCCD/PowerPC=

Latest revision as of 23:47, 7 December 2005

The BCCD, or Bootable Cluster CD, is a diskless cluster solution "created to facilitate instruction of parallel computing aspects and paradigms." More information about the BCCD can be obtained from bccd.cs.uni.edu, as well as from the BCCD's main wiki, which this page is meant to complement.

Building the BCCD on PowerPC

See also: BCCD weblog

The instructions that formerly lived here have been replaced by the generic build instructions.

TODO List for BCCD/PowerPC

Fix Runtime Build Environment

1) /etc/ld.so.conf

change /lib/gcc-lib/i386-lnxbbc-linux to /lib/gcc-lib/powerpc-lnxbbc-linux

bccd/special/bbc-provided/files/ld.so.conf

2) LD_LIBRARY_PATH in /etc/bashrc

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/gcc-lib/i386-lnxbbc-linux/ should be: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/gcc-lib/powerpc-lnxbbc-linux/

bccd/special/bbc-provided/files/bashrc

3) Fix library install dir:

ld looks at "/tmp/${USER}.build/staging/singularity/image/lib" to find the libraries that are in "/lib":

/bin/../lib/gcc-lib/powerpc-lnxbbc-linux/3.2.3/../../../../powerpc-lnxbbc-linux/bin/ld: cannot find //tmp/gray.build/staging/singularity/image//lib/libc.so.6 collect2: ld returned 1 exit status

Not sure what needs to be changed here.. (the quick fix on the image is mkdir -p /tmp/gray.build/staging/singularity/image && ln -sf /lib /tmp/gray.build/staging/singularity/image/lib)

4) CPP defaults to /lib/cpp, but cpp is at /bin/cpp and /usr/bin/cpp

5) MPICC

export MPICC=/lam-mpi/bin/mpicc

so mpicc is found?

6) LDFLAGS - may be fixed once above issues are addressed

Maybe this will come automatically once LD_LIBRARY_PATH and/or ld.so.conf is fixed, but:

export LDFLAGS="-L/lib/gcc-lib/powerpc-lnxbbc-linux"

is currently necessary while building FFTW:

checking whether the Fortran 77 compiler (f77 ) works... no

configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables.

(can't find -lfrtbegin)

Build and Test Packages

To Build and Test

perfex

To Test

gromacs - test multinode runs