build_sec_compilers.sh 768 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#! /bin/bash

# Make a directory in /tmp/OpenFPM_pdata

echo "Directory: $1"
echo "Machine: $2"

mkdir src/config

git submodule init
if [ $? -ne 0 ]; then
  echo -e "Configure\033[91;5;1m FAILED \033[0m"
  exit 1
fi

git submodule update
if [ $? -ne 0 ]; then
  echo -e "Configure\033[91;5;1m FAILED \033[0m"
  exit 1
fi

mkdir openfpm_numerics/src/config

24 25

if [ "$2" == "taurus" ]; then
26
    echo "Compiling on taurus with intel compiler"
27

28 29
    source /etc/profile
    echo "$PATH"
incardon's avatar
incardon committed
30
    module load gcc/4.9.3
31
    module load intel/2017.0.020
32

incardon's avatar
incardon committed
33 34 35 36
    echo "3" > input_install
    echo "1" >> input_install
    echo "24" >> input_install
    echo "y" >> input_install
37
    echo "1" >> input_install
incardon's avatar
incardon committed
38

39
    ./install -i "/scratch/p_ppm/openfpm_deps_intel" < input_install
40 41

fi
42 43