Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

aoc -c -g kernel.cl --report error

Altera_Forum
Honored Contributor II
1,747 Views

when i run the command "aoc -c -g kernel.cl --report ", i met an error like this : 

 

" system_integrator: hdl.cpp:459: hdl::Signal1::Dimension::Dimension(int, int): Assertion `size > 0' failed.".  

 

who can tell me the reason for showing this error and how to slove it? 

 

thank you!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
661 Views

Do not name your .cl OpenCL kernel source file "kernel". Naming the source file kernel.cl causes theAOC to generate intermediate design files that have the same names as certain internal files, whichleads to an compilation error. 

 

Quoted from <<altera sdk for openclprogramming guide (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/hb/opencl-sdk/aocl_programming_guide.pdf)>> (Page 1-14)
0 Kudos
Reply