-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-native-libs.sh
executable file
·42 lines (33 loc) · 1.1 KB
/
build-native-libs.sh
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
#!/usr/bin/env bash
function check_env() {
_ENV=$1
_PATH=$2
result=$(printenv ${_ENV} | grep "${_PATH}")
if [[ "$result" != "" ]]
then
echo "${_ENV} contains ${_PATH}"
else
echo "${_ENV} does not contain ${_PATH}! Adding in ~/.bashrc"
echo "" >> ~/.bashrc"
echo "${_ENV}=\$${_ENV}:${_PATH}" >> ~/.bashrc"
fi
return 0
}
PROJECT_PATH=$(cd `dirname "${BASH_SOURCE[0]}"`/..; pwd)
NATIVE_SRC=${PROJECT_PATH}/src/native
source ${PROJECT_PATH}/conf/cluster-env.sh
CAFFE2_INSTALL_HOME=/home/${USER}
# Build ISEE-Basic-Pedestrian-Tracker
echo "Building ISEE-Basic-Pedestrian-Tracker..."
source ${PROJECT_PATH}/sbin/native/build-basic-tracker.sh
# Build Caffe
echo "Building Caffe2..."
source ${PROJECT_PATH}/sbin/native/build-caffe2.sh
export CAFFE2_HOME=${NATIVE_SRC}/caffe2
# Build DeepMAR_deploy
echo "Building DeepMAR_deploy..."
source ${PROJECT_PATH}/sbin/native/build-DeepMAR_deploy.sh
# Build CudaMonitor4j
echo "Building CudaMonitor4j..."
source ${PROJECT_PATH}/sbin/native/build-cuda-monitor.sh
echo "Successfully finished building native libraries!"