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

a10gx compilation for emulator mode fails

Atul_Ghalame
New Contributor I
950 Views

Hi all,

I'm compiling hello_world code for the a10gx card on Quartus 20.2 pro version.

I could compile the code without emulator and .aocx was generated for a10gx board. However, when I add -march=emulator while compiling, it fails with following error:

You are now compiling the full flow!!
aoc: Selected target board a10gx
Unable to load OpenCL platforms
Error: OpenCL kernel compilation FAILED

I've set Quartus location & env variables. I'll appreciate your suggestion why emulator might fail whereas board option works.

Thanks,

Atul

0 Kudos
1 Solution
Atul_Ghalame
New Contributor I
918 Views

Hi, 

Just to help who faced this problem. Following step worked:

- Copied Intel_FPGA_SSG_Emulator.icd manually /etc/OpenCL/vendors/ 

- aocl diagnose passed and found 'libintelocl_emu.so' library

- Intel(R) FPGA Emulation Platform for OpenCL(TM) listed in diagnosis.

 

best wishes,

Atul 

View solution in original post

0 Kudos
1 Reply
Atul_Ghalame
New Contributor I
919 Views

Hi, 

Just to help who faced this problem. Following step worked:

- Copied Intel_FPGA_SSG_Emulator.icd manually /etc/OpenCL/vendors/ 

- aocl diagnose passed and found 'libintelocl_emu.so' library

- Intel(R) FPGA Emulation Platform for OpenCL(TM) listed in diagnosis.

 

best wishes,

Atul 

0 Kudos
Reply