Forum Discussion
Fpga board error
I had previously installed oneapi version 2023.2.0, however due to compatibility issues with my ubuntu version, I downgraded to oneapi version 2021.4.0.
I'm getting the error : "undefined symbol: sscanf_s_u" when i run the aocl diagnose command.
lsai_nikhil@server1:~$ aocl diagnose -------------------------------------------------------------------- ICD System Diagnostics -------------------------------------------------------------------- Using the following location for ICD installation: /etc/OpenCL/vendors Found 3 icd entry at that location: /etc/OpenCL/vendors/Altera.icd /etc/OpenCL/vendors/intel-cpu.icd /etc/OpenCL/vendors/Intel_FPGA_SSG_Emulator.icd The following OpenCL libraries are referenced in the icd files: libalteracl.so libintelocl.so libintelocl_emu.so Checking LD_LIBRARY_PATH for registered libraries: WARNING: libintelocl_emu.so NOT FOUND Using OCL_ICD_FILENAMES to search for ICD clients, it is set to libintelocl_emu.so:libalteracl.so:/opt/intel/oneapi/compiler/2021.4.0/linux/lib/x64/libintelocl.so Checking LD_LIBRARY_PATH for registered libraries specified by OCL_ICD_FILENAMES WARNING: libintelocl_emu.so NOT FOUND libalteracl.so was registered on the system at /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/host/linux64/lib /opt/intel/oneapi/compiler/2021.4.0/linux/lib/x64/libintelocl.so was registered on the system. Using the following location for fcd installations: /opt/Intel/OpenCLFPGA/oneAPI/Boards Found 1 fcd entry at that location: /opt/Intel/OpenCLFPGA/oneAPI/Boards/intel_a10gx_pac.fcd The following OpenCL libraries are referenced in the fcd files: libopae-c.so /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so Checking LD_LIBRARY_PATH for registered libraries: WARNING: libopae-c.so NOT FOUND /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so was registered on the system. /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so was registered on the system. Error: Could not load board library /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so (error_msg: /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so: undefined symbol: sscanf_s_u) Failed to dynamically load board MMD /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so Number of Platforms = 3 1. Intel(R) FPGA Emulation Platform for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3 2. Intel(R) FPGA SDK for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 2021.4 3. Intel(R) OpenCL | Intel(R) Corporation | OpenCL 3.0 LINUX -------------------------------------------------------------------- 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 -------------------------------------------------------------------- Device Name: acl0 BSP Install Location: /opt/intel/oneapi/intelfpgadpcpp/2021.4.0/board/intel_a10gx_pac Vendor: Intel Corp Physical Dev Name Status Information pac_ed00000 Uninitialized OpenCL BSP not loaded. Must load BSP using command: 'aocl program <device_name> <aocx_file>' before running OpenCL programs using this device DIAGNOSTIC_PASSED --------------------------------------------------------------------
And the following is the output for sycl-ls
lsai_nikhil@server1:~$ sycl-ls Error: Could not load board library /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so (error_msg: /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so: undefined symbol: sscanf_s_u) Failed to dynamically load board MMD /opt/intel/oneapi/compiler/2021.4.0/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/lib/libMPF.so [opencl:0] ACC : Intel(R) FPGA Emulation Platform for OpenCL(TM) 1.2 [2021.12.9.0.24_005321] Error initializing DMA: no memory Error initializing mmd dma Error closing DMA Error initializing bsp terminate called after throwing an instance of 'cl::sycl::runtime_error' what(): Native API failed. Native API returns: -2 (CL_DEVICE_NOT_AVAILABLE) -2 (CL_DEVICE_NOT_AVAILABLE) Aborted (core dumped)
5 Replies
- aikeu
Regular Contributor
- Chithambarash
New Contributor
lsai_nikhil@server1:~$ uname -r 4.15.0-213-generic lsai_nikhil@server1:~$ lsb_release -a LSB Version: core-9.20170808ubuntu1 Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic
- aikeu
Regular Contributor
Hi Chithambarash,
The Ubuntu 18.04 is not supported referring to the document.
Ubuntu 20.04, 22.04 is only meontioned in the support.
Therefore the errors maybe related to that.
Thanks.
Regards,
Aik Eu
- aikeu
Regular Contributor
- aikeu
Regular Contributor
Hi Chithambarash,
We do not receive any response from you to the previous question/reply/answer that I have provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.
Thanks.
Regards,
Aik Eu