Auryn on a Fedora based cluster

This section contains questions related to the compilation of Auryn on different platforms.
Post Reply
asinha
Posts: 37
Joined: Wed Oct 15, 2014 5:12 pm
Location: Hatfield, Hertfordshire, UK
Contact:

Auryn on a Fedora based cluster

Post by asinha » Thu Oct 16, 2014 3:10 pm

This is a quick howto on how to run Auryn on a Fedora based cluster. I've used it on the Herts STRI cluster.

First - download auryn. It's best to checkout the lastest git commit. In general, the instructions present here should work just fine for you. You may need a couple of tweaks to the Makefile if the required libraries are not present in standard locations. For example, both, the required openmpi libraries and the mpic++ binary were placed in non standard locations in the cluster configuration. Therefore, I need to specify these during the build.

For the mpic++ binary, I simply needed to add its location to the PATH variable:

Code: Select all

export PATH=$PATH:/usr/mpi/gcc/openmpi-1.4.3/bin/:~/.local/bin/:~/bin:/soft/nrn/x86_64/bin/
to my ~/.bashrc was sufficient. Here, /usr/mpi/gcc/openmpi-1.4.3/bin is the location of the mpic++ executable.

Similarly, to specify the correct location of the libraries required to compile Auryn, I needed to modify the LDFLAGS variable in the Makefile. In my case, it now looks like this:

Code: Select all

LDFLAGS=-L/usr/lib64/openmpi/lib/ -lboost_program_options -lboost_mpi -lboost_serialization
I added the -L/usr/lib64/openmpi/lib/ fragment to tell the linker/compiler that it should look in this location also. You can read more about the -L on the internet, or the gcc etc. man pages.

Once it compiles, running it is quite easy if you're running it on the same node that you had compiled it on. In our cluster, like most, we need to submit jobs that a queue scheduler handles - using the qsub command. The other issue can arise if all the nodes on the cluster aren't exactly the same - maybe with different operating system versions or library versions. If the node that the scheduler will run your simulation on differs, you may need to provide some extra information to the qsub command. For example, I need to specify the location of the required shared objects in by job file:

Code: Select all

echo "---------------------- Simulation started -----------------------------"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/mpi/gcc/openmpi-1.4.3/lib64/ ./auryn-0.4.1/build/home/sim_background
echo "---------------------- Simulation ended -----------------------------"
That's about it. For other issues, contact the cluster admin and he should be able to help you out - especially if you cannot find the required packages at all. The admins need to install these for you.

User avatar
zenke
Site Admin
Posts: 156
Joined: Tue Oct 14, 2014 11:34 am
Location: Basel, CH
Contact:

Re: Auryn on a Fedora based cluster

Post by zenke » Sun Dec 07, 2014 5:22 pm

Thanks great for sharing this!

afvincent
Posts: 1
Joined: Tue Jan 23, 2018 11:28 pm

Re: Auryn on a Fedora based cluster

Post by afvincent » Mon Jan 29, 2018 6:58 pm

(Disclaimer: if necrobumping threads is considered a bad practice, please tell me and I will open a new dedicated thread.)

Here is another solution that I found to install Auryn on a Fedora (27) workstation.

Code: Select all

# Script to download and set up Auryn from GitHub

module load mpi/openmpi-x86_64  # Fedora-specific? Add Open MPI to the path
cd $HOME/FOSS  # my custom directory for software installed through git
# From the official documentation
git clone https://github.com/fzenke/auryn.git
cd ./auryn/build/release
./bootstrap.sh
make
Putting the code from above in a bash script, I was able to successfully install Auryn following the tutorial in the official documentation. The key line is

Code: Select all

module load mpi/openmpi-x86_64
that makes the Open MPI libraries and executable files discoverable through the path. I guess that it simply does something similar to asinha's solution, but I wanted to share it, in case someone finds it better suited to their needs.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests