Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
153 Views

Valgrind fails to run Intel FPGA OpenCL design examples on Arria-10

Hi all,

I'm trying to run Intel's FPGA OpenCL design examples on Arria-10 card. I've been using SDK environment 16.1 so far and it showed memory leak with valgrind tool. So we decided to upgrade our environment to 17.1. BSP and compiler has been updated I could run hello_word code on new version. However, I'm not able to run valgrind tool, it shows:

MMD ERROR: Unable to find an unused signal number
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 17.1

ERROR: CL_DEVICE_NOT_FOUND
Location: ../common/src/AOCLUtils/opencl.cpp:356
Query for number of devices failed

Is it linking error or something else? Kindly suggest possible issue/solution

Thanks,

0 Kudos
3 Replies
Highlighted
115 Views

Hi, 


Please make sure that you have set the environment variables correctly. 

Please compare the previous working values of environment variables and current one,

for example variables like CL_CONTEXT_EMULATOR_DEVICE_ALTERA should be properly set. 


Thanks and Regards

Anil 


0 Kudos
Highlighted
Beginner
76 Views

Hi, 

Thanks for your suggestion. I'll to ensure env variables are passed to valgrind and how it worked for previous version.

I'm running .aocx compiled on board and not the emulator mode, so could you please mention relevant variable I should check.

What does 'MMD ERROR: Unable to find an unused signal number' indicate? 

strace command on valgrind shows 'aocl-pro-rte/host/linux64/lib/tls/x86_64/libc.so.6'  being used. Any device specific library not set properly?

Kind regards,

Atul

0 Kudos
Highlighted
Beginner
32 Views

Hi,

I tried to keep both env variables Altera & Intel but no change.

strace tool shows libnalla_pcie_mmd.so is being opened multiple times unlike without valgrind run. 

Any change is expected below lines of board_env.xml or board_env.icd file? 

<mmdlib>%b/linux64/lib/libnalla_pcie_mmd.so</mmdlib>
<linkflags>-L%b/linux64/lib</linkflags>
<linklibs>-lnalla_pcie_mmd</linklibs>
<utilbindir>%b/linux64/libexec</utilbindir>

Please keep posted if you managed to run Valgrind test on FPGA (not emulator) for any SDK version beyond 16.1, best if you have tested 385A card. 

Thanks,

Atul

0 Kudos