-
Notifications
You must be signed in to change notification settings - Fork 1
/
xilinxCompilation.sh
executable file
·48 lines (41 loc) · 1.6 KB
/
xilinxCompilation.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
43
44
45
46
47
48
#!/usr/bin/env bash
PLATFORM=xilinx_kcu1500_dynamic_5_0
function compileGlobalInterpreter {
mkdir -p buildGlobal
cd buildGlobal
xocc -c -s -o interpreter.xo -t hw --platform $PLATFORM ../interpreter.cl
xocc -l -s -O3 -j12 -o mykerinterpreternel.xclbin -t hw --platform $PLATFORM interpreter.xo
cd -
}
function compileLocalInterpreter {
mkdir -p buildLocal
cd buildLocal
xocc -c -s -o interpreterLocal.xo -t hw --platform $PLATFORM ../interpreterLocal.cl
xocc -l -s -O3 -j12 -o mykerinterpreternelLocal.xclbin -t hw --platform $PLATFORM interpreterLocal.xo
cd -
}
function compilePrivateInterpreter {
mkdir -p buildPrivate
cd buildPrivate
xocc -c -s -o interpreterPrivate.xo -t hw --platform $PLATFORM ../interpreterPrivate.cl
xocc -l -s -O3 -j12 -o mykerinterpreternelPrivate.xclbin -t hw --platform $PLATFORM interpreterPrivate.xo
cd -
}
function compileParallelInterpreter {
mkdir -p buildParallel
cd buildParallel
xocc -c -s -o interpreterParallel.xo -t hw --platform $PLATFORM ../interpreterParallel.cl
xocc -l -s -O3 -j12 -o mykerinterpreternelParallel.xclbin -t hw --platform $PLATFORM interpreterParallel.xo
cd -
}
function compileParallelLoopInterpreter {
mkdir -p buildParallelLoop
cd buildParallelLoop
xocc -c -s -o interpreterParallelLoop.xo -t hw --platform $PLATFORM ../interpreterParallelLoop.cl
xocc -l -s -O3 -j12 -o mykerinterpreternelParallelLoop.xclbin -t hw --platform $PLATFORM interpreterParallelLoop.xo
cd -
}
compileGlobalInterpreter
compileLocalInterpreter
compilePrivateInterpreter
compileParallelInterpreter