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

Compiling the Host Program Hello_world on FPGA and using OpenCL (Devcloud)

sebernab
Beginner
496 Views

Hi,

 

I am using Intel Devcloud to compile the host program hello_world on FPGA with OpenCL. 

First of all, I am in a fpga_compile node and the emulation was correct:

 

aoc -march=emulator device/hello_world.cl -o bin/hello_world.aocx -board=a10gx_pac

aoc: OpenCL kernel compilation completed successfully.

aoc: Linking Object files....

aoc: Compiling for Emulation ....

 

But, if I want to compile the host program using make....Here, I have the following:

 

u137195@s001-n060:~/emulate/hello_world$ make

/usr/bin/ld: warning: libMPF.so, needed by /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so, not found (try using -rpath or -rpath-link)

/usr/bin/ld: warning: libopae-c.so.1, needed by /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so, not found (try using -rpath or -rpath-link)

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaMapMMIO'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaOpen'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetGUID'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaErrStr'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaUnmapMMIO'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetProperties'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaRegisterEvent'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaCreateEventHandle'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaWriteMMIO32'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpPrepareBuffer'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetBus'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetFunction'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetFunction'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpGetStats'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyEventHandle'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetDevice'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetObjectID'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReadMMIO32'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReconfigureSlot'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetOSObjectFromEventHandle'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetBus'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReset'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReleaseBuffer'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetObjectType'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyToken'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaGetIOAddress'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaReadMMIO64'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaWriteMMIO64'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaEnumerate'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetDevice'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpReleaseBuffer'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaClose'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetObjectID'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaUnregisterEvent'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpPinAndGetIOAddressVec'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesGetGUID'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpGetIOAddress'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfConnect'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaDestroyProperties'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPrepareBuffer'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `fpgaPropertiesSetSocketID'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpBufferAllocate'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfVtpBufferFree'

/usr/bin/ld: /glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelfpgadpcpp/2022.1.0/board/intel_a10gx_pac/linux64/lib/libintel_opae_mmd.so: undefined reference to `mpfDisconnect'

collect2: error: ld returned 1 exit status

make: *** [Makefile:74: bin/host] Error 1

 

How can I solve this problem?

 

Thanks!

0 Kudos
0 Replies
Reply