-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_octave.sh
executable file
·21 lines (18 loc) · 1.06 KB
/
build_octave.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
MEX=$1
COMPILER=$2
OUT_DIR=$3
mkdir -p $OUT_DIR
cd $OUT_DIR
export CXX=$COMPILER
export CXXFLAGS='-std=c++0x'
$MEX --mex -I/usr/local/include ../mPAPI_groupEvents.cpp -L/usr/local/lib/ -lpapi -output mPAPI_groupEvents
$MEX --mex -I/usr/local/include ../mPAPI_enumPresetEvents.cpp -L/usr/local/lib/ -lpapi -output mPAPI_enumPresetEvents
$MEX --mex -I/usr/local/include ../mPAPI_enumNativeEvents.cpp -L/usr/local/lib/ -lpapi -output mPAPI_enumNativeEvents
$MEX --mex -I/usr/local/include ../mPAPI_register.cpp -L/usr/local/lib/ -lpapi -output mPAPI_register
$MEX --mex -I/usr/local/include ../mPAPI_tic.cpp -L/usr/local/lib/ -lpapi -output mPAPI_tic
$MEX --mex -I/usr/local/include ../mPAPI_toc.cpp -L/usr/local/lib/ -lpapi -output mPAPI_toc
# Traces
$MEX --mex -I/usr/local/include ../mPAPI_trace_register.cpp -L/usr/local/lib/ -lpapi -output mPAPI_trace_register
$MEX --mex -I/usr/local/include ../mPAPI_trace_tic.cpp -L/usr/local/lib/ -lpapi -output mPAPI_trace_tic
$MEX --mex -I/usr/local/include ../mPAPI_trace_toc.cpp -L/usr/local/lib/ -lpapi -output mPAPI_trace_toc