Saikiranbelana
New Contributor
3 years agoIntel Devstack-OpenCL unable to detect PAC Cards
Intel Development Acceleration Stack for OpenCL is not detecting the Arria 10 PAC Cards on our server. It's looking for PAC drivers which cannot be found at the OpenCL_BSP installation path.
The Cards can be detected using `lspci` and `OPAE drivers` but not with `aocl diagnose` command:
System Specs:
OS: ubuntu - 18.04
The following is the log:
server2@ubuntu:~$ sudo fpgainfo fme Board Management Controller, microcontroller FW version 26895 Last Power Down Cause: POK_CORE Last Reset Cause: None //****** FME ******// Object Id : 0xEE00001 PCIe s:b:d:f : 0000:AF:00:0 Device Id : 0x09C4 Socket Id : 0x00 Ports Num : 01 Bitstream Id : 0x124000200000367 Bitstream Version : 1.2.4 Pr Interface Id : 38d782e3-b612-5343-b934-2433e348ac4c Boot Page : user Board Management Controller, microcontroller FW version 26895 Last Power Down Cause: POK_CORE Last Reset Cause: None //****** FME ******// Object Id : 0xEE00000 PCIe s:b:d:f : 0000:86:00:0 Device Id : 0x09C4 Socket Id : 0x00 Ports Num : 01 Bitstream Id : 0x124000200000367 Bitstream Version : 1.2.4 Pr Interface Id : 38d782e3-b612-5343-b934-2433e348ac4c Boot Page : user server2@ubuntu:~$ source ~/inteldevstack/init_env.sh export QUARTUS_HOME=/opt/intelFPGA_pro/quartus_19.2.0b57/quartus export OPAE_PLATFORM_ROOT=/home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv export AOCL_BOARD_PACKAGE_ROOT=/home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp source /home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp/linux64/libexec/setup_permissions.sh $OPAE_PLATFORM_ROOT/bin is in PATH already sudo cp /home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/sw/afu_platform_info /usr/bin/ export INTELFPGAOCLSDKROOT=/opt/intelFPGA_pro/quartus_19.2.0b57/hld export ALTERAOCLSDKROOT=/opt/intelFPGA_pro/quartus_19.2.0b57/hld $QUARTUS_HOME/bin is in PATH already source /opt/intelFPGA_pro/quartus_19.2.0b57/hld/init_opencl.sh server2@ubuntu:~$ aocl diagnose -------------------------------------------------------------------- ICD System Diagnostics -------------------------------------------------------------------- Using the following location for ICD installation: /etc/OpenCL/vendors Found 2 icd entry at that location: /etc/OpenCL/vendors/Altera.icd /etc/OpenCL/vendors/Intel_FPGA_SSG_Emulator.icd the following OpenCL libraries are referenced in the icd files: libalteracl.so libintelocl_emu.so checking LD_LIBRARY_PATH for registered libraries: libalteracl.so was registered on the system at /opt/intelFPGA_pro/quartus_19.2.0b57/hld/host/linux64/lib libintelocl_emu.so was registered on the system at /opt/intelFPGA_pro/quartus_19.2.0b57/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/a10_ref.fcd /opt/Intel/OpenCL/Boards/dcp_bsp.fcd the following OpenCL libraries are referenced in the fcd files: /opt/intelFPGA_pro/quartus_19.2.0b57/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so /home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so checking LD_LIBRARY_PATH for registered libraries: /opt/intelFPGA_pro/quartus_19.2.0b57/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so was registered on the system. /home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so was registered on the system. Number of Platforms = 2 1. Intel(R) FPGA SDK for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.4 2. Intel(R) FPGA Emulation Platform for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.2 -------------------------------------------------------------------- ICD diagnostics PASSED -------------------------------------------------------------------- -------------------------------------------------------------------- BSP Diagnostics -------------------------------------------------------------------- Error initializing DMA: no memory Error initializing mmd dma Error closing DMA Error initializing bsp Error initializing DMA: no memory Error initializing mmd dma Error closing DMA Error initializing bsp -------------------------------------------------------------------- Warning: No devices attached for package: /opt/intelFPGA_pro/quartus_19.2.0b57/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/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp -------------------------------------------------------------------- Error initializing DMA: no memory Error initializing mmd dma Error closing DMA Error initializing bsp Error initializing DMA: no memory Error initializing mmd dma Error closing DMA Error initializing bsp -------------------------------------------------------------------- Call "aocl diagnose <device-names>" to run diagnose for specified devices Call "aocl diagnose all" to run diagnose for all devices server2@ubuntu:~$ aocl install Do you want to setup the FCD at directory /opt/Intel/OpenCL/Boards [Y/n] y aocl install: /home/server2/inteldevstack/a10_gx_pac_ias_1_2_1_pv/opencl/opencl_bsp is already registered in the system, please uninstall it before reinstalling server2@ubuntu:~$
Please help us fix this @intel @BoonBengT_Altera @JohnT_Intel
Thank you,
Saikiran