Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
660 Discussions

Can't run FPGA programs

ManuelCostanzo
Beginner
1,224 Views

Hi, I have the following problem:

 

When I try to compile the FPGA program I get the following errors: 

 

/usr/bin/ld: warning: libopae-c.so.1, needed by /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaMapMMIO'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaOpen'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetGUID'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaErrStr'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaUnmapMMIO'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetProperties'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaRegisterEvent'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaCreateEventHandle'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaWriteMMIO32'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetBus'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetFunction'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetFunction'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyEventHandle'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetDevice'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetObjectID'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReadMMIO32'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReconfigureSlot'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetOSObjectFromEventHandle'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetBus'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReset'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReleaseBuffer'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetObjectType'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyToken'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetIOAddress'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReadMMIO64'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaWriteMMIO64'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaEnumerate'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetDevice'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaClose'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetObjectID'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaUnregisterEvent'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetGUID'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyProperties'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPrepareBuffer'
/usr/bin/ld: /glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetSocketID'
collect2: error: ld returned 1 exit status
make: *** [Makefile:60: bin/swifold] Error 1

 

 

I did the same that recommends here to setup de environment: https://devcloud.intel.com/oneapi/documentation/job-submission/


How can I solve this? Thank you very much!

0 Kudos
5 Replies
Rahila_T_Intel
Moderator
1,166 Views

Hi,


Thank you for posting in Intel communities.


Could you please share the following details-

 

1. Which DevCloud(oneAPI DevCloud/edge DevCloud/FPGA DevCloud) you are using?

2. Processor details

3. Sample Reproducer (sample code, steps to reproduce, commands you've used, etc 


Thanks


0 Kudos
ManuelCostanzo2
1,158 Views

Hey, 

 

Finally, I could compile and run de "vector-add" buffers example in the oneAPI DevCloud. But when I run the "vector-add" USM example, I get:

SYCL_DEVICE_FILTER=acc:1 ./example.fpga
Running on device: pac_a10 : Intel PAC Platform (pac_ee00000)
Vector size: 10000

Shared memory allocation failure.

 

Do you know how can I solve the "Shared memory allocation failure." error? Maybe this happen because the device doesn't support USM? There is some FPGA in the DevCloud that allows USM? Thank you

 

 

0 Kudos
BoonBengT_Intel
Moderator
1,084 Views

Hi @ManuelCostanzo2,


Thank you for posting in Intel community forum and hope all is well.

May I know what devices are you trying on?

And I would recommended to try out the design with a Stratix 10 or Arria 10 PAC on the devcloud.

Hope that clarify.


Best Wishes

BB


0 Kudos
BoonBengT_Intel
Moderator
1,035 Views

Hi @ManuelCostanzo2,


Greetings, just checking in to see if there is any further doubts in regards to this matter or trying it on Intel DevCloud.

Hope we have clarify your doubts.


Best Wishes

BB


0 Kudos
BoonBengT_Intel
Moderator
1,005 Views

Hi @ManuelCostanzo2,


Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.


Best Wishes

BB


0 Kudos
Reply