umar456 / training

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set environmental variables

Add the following lines to your ~/.bashrc file and restart your shell to set several environmental variables required for compilation.

export XILINX_OPENCL=/opt/Xilinx/SDAccel/2015.4
# LD_LIBRARY_PATH setting, replace sdaccel installation with the location of 
# SDAccel in the local system
export LD_LIBRARY_PATH=$XILINX_OPENCL/runtime/lib/x86_64/:$LD_LIBRARY_PATH

# LD_LIBRARY_PATH setting, replace sdaccel installation with the location of 
# SDAccel in the local system
export LD_LIBRARY_PATH=$XILINX_OPENCL/lib/lnx64.o/:$LD_LIBRARY_PATH

# Set the target platform for the application 
# (this MUST match your hardware + software version!)
export XCL_PLATFORM=xilinx_adm-pcie-7v3_1ddr_2_1

cl.hpp

Our demos use the C++ OpenCL API; however, the 2015.4 release of Xilinx SDAccel ships with an outdated version of cl.hpp which causes missing symbol errors when the exercises are compiled. Simply run sudo ./fix_cl_hpp.sh in the root directory of this folder

has a mis-match between the OpenCL version and cl.hpp file which causes missing symbol errors when your code is complied. Simply run

sudo fix_cl_hpp.sh

to automatically back up the default version of cl.hpp, download a standard version from Khronos.org, and install it to the appropriate directory.

About


Languages

Language:C++ 73.1%Language:C 15.1%Language:Makefile 10.8%Language:Shell 1.0%Language:Common Lisp 0.0%