init_aoc160_gidel.sh 967 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# This is created to automate the boring 
# process of setting AOC in celebdil
# DO NOT FORGET to run it using:
# >source init_aoc_esa.sh

echo "======================================="
echo "Setting up Altera OpenCL SDK & Compiler"
echo "======================================="
echo ""
10

11 12 13 14
export LM_LICENSE_FILE=/opt/cad/keys/altera
echo "LM_LICENSE_FILE: "
echo $LM_LICENSE_FILE
echo " "
15 16

export PATH=/opt/cad/altera/altera-16.0/quartus/bin/:$PATH
17 18 19 20
echo "PATH: "
echo $PATH
echo " "

21 22 23 24

export ALTERAOCLSDKROOT=/opt/cad/altera/altera-16.0/hld
echo "ALTERAOCLSDKROOT: "
echo $ALTERAOCLSDKROOT
25 26
echo " "

27
export AOCL_BOARD_PACKAGE_ROOT=~/BSP_AOC_GIDEL/Proc10A_16.0.2/
28 29
echo "AOCL_BOARD_PACKAGE_ROOT: "
echo $AOCL_BOARD_PACKAGE_ROOT
30 31
echo " "

32 33
source $ALTERAOCLSDKROOT/init_opencl.sh
echo " "
34
echo "List of available boards "
35
aoc --list-boards
36 37
echo " "

38 39
echo "Altera OpenCL SDK version: "
aocl version
40 41
echo " "

42 43
echo "Altera OpenCL Compiler version: "
aoc --version
44
echo " "