-
Notifications
You must be signed in to change notification settings - Fork 0
/
FSU_SPEAR.txt
75 lines (54 loc) · 1.71 KB
/
FSU_SPEAR.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
I got the source built on FSU spear
1) add
source /etc/profile
module load gnu-openmpi
export ARMADILLO_ROOT=~/local-gnu
export FFTW_ROOT=/opt/hpc/gnu
export BOOST_ROOT=~/local-gnu/boost-1.49.0
export VTK_DIR=~/local-gnu/vtk-5.10/lib/vtk-5.10
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hpc/gnu/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BOOST_ROOT/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARMADILLO_ROOT/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VTK_DIR
to the top of the ~/.bashrc file
2) Build boost:
wget boost_1_49_0.tar.gz
tar xfz boost_1_49_0.tar.gz
mkdir ~/local-gnu
cd boost_1_49_0
./bootstrap.sh --prefix=$HOME/local-gnu/boost-1.49.0
./b2 install --prefix=$HOME/local-gnu/boost-1.49.0
rm -rf boost_1_49_0
3) Build armadillo:
wget armadillo-3.2.2.tar.gz
tar xvfz armadillo-3.2.2.tar.gz
cd armadillo-3.2.2
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local-gnu .
make install
4) Build VTK
wget vtk-5.10.tar.gz
tar xvfz vtk-5.10.tar.gz
mkdir vtk-build
cd vtk-build
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hpc/gnu/lib64
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local-gnu/vtk-5.10 ../VTK
make install
4) Build the source (note the definition on cmake line. Spears VTK
installation is non-standard)
mkdir build
cd build
cmake -DVTK_DIR=$HOME/local-gnu/vtk-5.10/lib/vtk-5.10 ../rbffd_gpu
make -j 4
==========
NOTE: spear cannot access github but it can access pamd. So I created a mirror
clone (git clone --mirror <repo>) for the source on pamd (~/repos). I added
the file
<repo>/hooks/post-receive
with content:
====
#!/bin/bash
git push
====
and "chmod +x" permissions
So that git will automatically push changes from the mirror repo to the github
repo.