Getting Started with the Intel FPGA SDK for OpenCL Pro Edition for Linux
Hello All,
I am working on Arria 10sx board and I want to run hello world example for OpenCL.
I have followed the steps "getting started eith the intel FPGA SDK for OpenCL Pro Edition for Linux" from "https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807309901.html#ewa1435159392013" this document.
1. Set up the Env. variables:
a. PATH and LD_LIBRARY_PATH
2. result for aocl version:
aocl 19.1.0.240 (Intel(R) FPGA SDK for OpenCL(TM), Version 19.1.0 Build 240 Pro Edition, Copyright (C) 2019 Intel Corporation)
3.Installing FPGA board:
After follwoing commands for installing FPGA board, I tried following command "aocl diagnose" an result i am getting is:
--------------------------------------------------------------------
ICD System Diagnostics
--------------------------------------------------------------------
Using the following location for ICD installation:
/etc/OpenCL/vendors
Found 4 icd entry at that location:
/etc/OpenCL/vendors/nvidia.icd
/etc/OpenCL/vendors/intel64.icd
/etc/OpenCL/vendors/Intel_FPGA_SSG_Emulator.icd
/etc/OpenCL/vendors/Altera.icd
the following OpenCL libraries are referenced in the icd files:
libnvidia-opencl.so.1
/opt/intel/system_studio_2019/opencl_compilers_and_libraries_18.1.0.013/linux/compiler/lib/intel64_lin/libintelocl.so
libintelocl_emu.so
checking LD_LIBRARY_PATH for registered libraries:
WARNING: libnvidia-opencl.so.1 NOT FOUND
WARNING: libnvidia-opencl.so.1 NOT FOUND
/opt/intel/system_studio_2019/opencl_compilers_and_libraries_18.1.0.013/linux/compiler/lib/intel64_lin/libintelocl.so was registered on the system.
WARNING: libintelocl_emu.so NOT FOUND
WARNING: libintelocl_emu.so NOT FOUND
libalteracl.so was registered on the system at /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/host/linux64/lib
Using the following location for fcd installations:
/opt/Intel/OpenCL/Boards
Found 2 fcd entry at that location:
/opt/Intel/OpenCL/Boards/a10soc.fcd
/opt/Intel/OpenCL/Boards/a10_ref.fcd
the following OpenCL libraries are referenced in the fcd files:
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so
checking LD_LIBRARY_PATH for registered libraries:
WARNING: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so NOT FOUND
WARNING: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so NOT FOUND
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so was registered on the system.
Error: Could not load board library /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so (error_msg: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so: cannot open shared object file: No such file or directory)
Failed to dynamically load board MMD /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so
Error: Could not load board library /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so (error_msg: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so: cannot open shared object file: No such file or directory)
Failed to dynamically load board MMD /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/linux64/lib/libintel_a10soc32_mmd.so
Number of Platforms = 3
1. NVIDIA CUDA | NVIDIA Corporation | OpenCL 1.2 CUDA 9.1.84
2. Intel(R) CPU Runtime for OpenCL(TM) Applications | Intel(R) Corporation | OpenCL 2.1 LINUX
3. Intel(R) FPGA SDK for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.1
--------------------------------------------------------------------
ICD diagnostics PASSED
--------------------------------------------------------------------
--------------------------------------------------------------------
BSP Diagnostics
--------------------------------------------------------------------
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/arm32/bin/diagnose: 1: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/arm32/bin/diagnose: Syntax error: word unexpected (expecting ")")
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10_ref
--------------------------------------------------------------------
Unable to find the kernel mode driver.
Please make sure you have properly installed the driver. To install the driver, run
aocl install
DIAGNOSTIC_FAILED
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc
--------------------------------------------------------------------
/home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/arm32/bin/diagnose: 1: /home/sunil/sunil-server/SUNIL_BOX2/software/intelFPGA_pro/19.1/hld/board/a10soc/arm32/bin/diagnose: Syntax error: word unexpected (expecting ")")
--------------------------------------------------------------------
Call "aocl diagnose <device-names>" to run diagnose for specified devices
Call "aocl diagnose all" to run diagnose for all devices
I am not sure where I am going wrong can anyone help me with this issue?
Thank you,
-Sunil