Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
공지
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 토론

AOC compile emulation error

polasz
초급자
1,808 조회수

Hi everyone,

 

I am using Quartus Prime Pro version 20.4 and am trying to build for emulation, when I build the hello world example via:

aoc -march=emulator -v hello.cl

 

I get the output:

aoc: Selected target board package
aoc: Selected target board
Error: OpenCL kernel compilation FAILED

 

And that's it, there is a ioc.log file created but it is empty and I have set CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA environment variable, but I think that's only needed for running anyway.

Has anyone seen this before, and/or is there a way to get more detailed error reporting from aoc to try and figure out what the error is? For instance is it possible to view what commands are being issued by the aoc wrapper script?

 

Thanks,

Nick

0 포인트
5 응답
aikeu
직원
1,775 조회수
0 포인트
polasz
초급자
1,765 조회수

Hi,

 

Thanks very much Aik Eu, we have been playing with this and found that it was because we had incorrectly set the PATH environment variable so it did not point to hld/llvm/aocl-bin directory correctly. When including that in the path it all works now for us  

 

I post this here in-case it is helpful to anyone in the future who is getting a similar issue

 

Cheers,

Nick

Yeeves
초급자
1,143 조회수

Thanks Polzsz

 

This helped me fix the issue that stuck with me for three days. Your solution works.

 

Cheers

Feng

0 포인트
Bahamas2021
초보자
1,762 조회수
Hi,
I hope you are doing well pay attention
Best wishes,
Lahcene
0 포인트
aikeu
직원
1,753 조회수

Hi polasz,


Good to hear that it is working now on your side!

I will close this thread for now.


Thanks.

Regards,

Aik Eu


0 포인트
응답