Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
573 Discussions

a10gx compilation for emulator mode fails

Atul_Ghalame
New Contributor I
454 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
422 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

1 Reply
Atul_Ghalame
New Contributor I
423 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 

Reply