Build Notes: CentOS 6.3

Written by sixten on . Posted in S/PHI/nX, System Administration

Today CentOS 6.3 has been released. CentOS – the Community ENTerprise Operating System  - is a free community-driven alternative to Red Hat Enterprise Linux  (RHEL). CentOS 6.3 is based on RHEL 6.3 (available since 06/21/2012). CentOS can be considered as a particularly stable Linux distribution which is, therefore, very popular for building up large cluster environments.

The complete release notes of CentOS 6.3 can be found here.

Installing Minimal CentOS 6.3

The following series of screenshots demonstrates how a minimal CentOS 6.3 system can be installed. In this example a virtual machine with only 512 MB of RAM has been used which causes the CentOS installer to fall back to the text-only installation mode. Note, that the installer itself requires at least 392 MB of RAM. Please adapt the settings according to your needs. Download the installation media from your next nearest CentOS mirror. Here the image CentOS-6.3-x86_64-netinstall.iso has been downloaded from the RWTH Aachen.

Install S/PHI/nX prerequisites

In order to compile SxAccelerate and S/PHI/nX some external libraries and programs have to be installed on the build system first. Please execute the following commands under root privileges:

yum install gcc gcc-c++ make automake libtool flex bison subversion libgfortran
optionally "yum install vim-X11"
wget

Building S/PHI/nX

In contrast to the previous build notes, e.g., Debian or Fedora, we have to install NetCDF as it is not part of the standard installation of CentOS 6.3.


# download and extract the SxAccelerate source tree
wget http://sxlib.de/downloads/sphinx-2.0.2.tar.bz2
tar xvfj sphinx-2.0.2.tar.bz2

# build NetCDF
cd sphinx/sxaccelerate/3rd-party/packages
wget http://sxlib.de/downloads/sx-3rdparty-unix.tar
tar xvf sx-3rdparty-unix.tar
cd ..
./setup
./configure --prefix=/opt/sxaccelerate/1.0.1/3rd-party --disable-lapack\
--disable-atlas --disable-fftw --enable-netcdf
cd ..

# prepare SxAccelerate
cd src
./setup

# build SxAccelerate: Debug mode (OPTIONAL)
./configure --prefix=/opt/sxaccelerate/1.0.1/debug --enable-debug\
--disable-static --enable-shared --disable-atlas --disable-fftw\
--enable-mkl --enable-mklfft --with-mklpath=/opt/intel/mkl \
--with-numlibs=/opt/sxaccelerate/1.0.1/3rd-party
make all install

# build SxAccelerate: Release mode
make clean
./configure --prefix=/opt/sxaccelerate/1.0.1/debug --enable-debug\
--disable-static --enable-shared --disable-atlas --disable-fftw\
--enable-mkl --enable-mklfft --with-mklpath=/opt/intel/mkl \
--with-numlibs=/opt/sxaccelerate/1.0.1/3rd-party
make all install

# build S/PHI/nX: Release mode
cd ../../src  # we are in "sphinx/src"
./configure --prefix=/opt/sphinx/2.0.2\
--with-sxaccelerate=/opt/sxaccelerate/1.0.1/release\
--with-numlibs=/opt/sxaccelerate/1.0.1/release/3rd-party
make all install

After performing the above instructions S/PHI/nX and SxAccelerate can be found in /opt and /opt/sxaccelerate, respectively.

The compiled package can be downloaded from here.

Please follow the author on Twitter @SxBoeck.

Tags: , , ,

© 2013 Gemmantics