Thanks Sergey for your help.
Now i am able to compile, but running gives error as below:
ERROR: CL_DEVICE_NOT_FOUND
Location: ../common/src/AOCLUtils/opencl.cpp:356
Query for number of devices failed
Please let me know how i can get this working.
My Runs are as below :
(base) wc@ign:~/Documents/opencl_fpga/exm_opencl_hello_world_x64_linux/hello_world$ aoc -march=emulator -legacy-emulator -board=a10gx device/hello_world.cl -o bin/hello_world.aocx
aoc: Running OpenCL parser....
aoc: OpenCL parser completed successfully.
aoc: Linking Object files....
aoc: Compiling for Emulation ....
------------------------------Make of hello world --------------------------------------------------------------------------------------
(base) wc@ign:~/Documents/opencl_fpga/exm_opencl_hello_world_x64_linux/hello_world$ make
../common/src/AOCLUtils/opencl.cpp: In function ‘_cl_program* aocl_utils::createProgramFromBinary(cl_context, const char*, _cl_device_id* const*, unsigned int)’:
../common/src/AOCLUtils/opencl.cpp:388:22: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes]
scoped_array<cl_int> binary_status(num_devices);
^
------------------------------Running hello world ---------------------------------------------------------------------
(base) wc@ign:~/Documents/opencl_fpga/exm_opencl_hello_world_x64_linux/hello_world$ bin/host
Querying platform for info:
==========================
CL_PLATFORM_NAME = Intel(R) FPGA SDK for OpenCL(TM)
CL_PLATFORM_VENDOR = Intel(R) Corporation
CL_PLATFORM_VERSION = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.2
ERROR: CL_DEVICE_NOT_FOUND
Location: ../common/src/AOCLUtils/opencl.cpp:356
Query for number of devices failed