-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.local.sh
More file actions
executable file
·24 lines (22 loc) · 1.08 KB
/
build.local.sh
File metadata and controls
executable file
·24 lines (22 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
ver=18
if [[ -n "$1" && "$1" -eq "16" ]]
then
ver=$1
fi
echo "┌──────────────────────────────────────────────────────────────┐"
echo "│ ICPC ver. $ver │"
echo "└──────────────────────────────────────────────────────────────┘"
mkdir ./build
if [ "$ver" -eq "18" ]
then
source /opt/intel/bin/compilervars.sh intel64
which icpc /opt/intel/bin/icpc
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.2.199/linux/compiler/lib/intel64_lin/:$LD_LIBRARY_PATH
else
source /home/stefan/intel16/bin/compilervars.sh intel64
which icpc /home/stefan/intel16/bin/icpc
export LD_LIBRARY_PATH=/home/stefan/intel16/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/:$LD_LIBRARY_PATH
fi
icpc -qopenmp -g -Wall -I./include/ -L./lib/ -obuild/blocksort main.cpp -lcurl
exit 0