ispc-1.9.1.sh 668 Bytes
Newer Older
Pablo Toharia's avatar
Pablo Toharia committed
1
#!/bin/bash
2
# Download and install ispc 1.9.1
3
cd $HOME/opt
Pablo Toharia's avatar
Pablo Toharia committed
4 5 6

VERSION=1.9.1

7 8 9 10 11 12 13 14
# Old: to compile it from scratch
# sudo apt-get install libncurses5-dev llvm clang libclang-dev
# git clone https://github.com/ispc/ispc.git ispc-${VERSION}
# cd ispc-${VERSION}
# git checkout v$VERSION
# make
wget http://netix.dl.sourceforge.net/project/ispcmirror/v1.9.1/ispc-v1.9.1-linux.tar.gz
tar zxvf ispc-v1.9.1-linux.tar.gz
Pablo Toharia's avatar
Pablo Toharia committed
15

16 17 18
# # Install only the executable
# mkdir $HOME/opt/ispc-${VERSION}
# cp ispc $HOME/opt/ispc-${VERSION}
19
ln -s ~/opt/modules/modules/ispc-${VERSION} ~/opt/modules/installed/ispc-${VERSION}
Pablo Toharia's avatar
Pablo Toharia committed
20 21
echo "module load ispc-"${VERSION} >> $HOME/.bashrc
source $HOME/.bashrc