Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15471 Discussions

Error: Cannot fit kernel(s) on device

Altera_Forum
Honored Contributor II
1,261 Views

Hello everyone, 

 

I want to implement some function of open source code with DE1SoC. 

The project uses opencl kernel to program the FPGA and have a host program to call the kernel. 

But when I build the project, there is an error said 'error: cannot fit kernel(s) on device'. While the host program and .aoco files were generated successfully. The details are as below: 

 

+--------------------------------------------------------------------+ ; Estimated Resource Usage Summary ; +----------------------------------------+---------------------------+ ; Resource + Usage ; +----------------------------------------+---------------------------+ ; Logic utilization ; 95% ; ; ALUTs ; 55% ; ; Dedicated logic registers ; 45% ; ; Memory blocks ; 84% ; ; DSP blocks ; 32% ; +----------------------------------------+---------------------------; aoc: First stage compilation completed successfully. Error: Cannot fit kernel(s) on device make: *** Error 1 

 

And the last several lines in the log file shows below (Seems there is no error?): 

2018.01.26.11:18:23 Info: border: "hps_io" instantiated altera_interface_generator "border" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: system: Done "system" with 93 modules, 244 files 

 

I have build the hello-word demo and boardtest demo successfully which are contented in the de1soc_opencl_v02.pdf (http://www.terasic.com.cn/attachment/archive/836/de1soc_opencl_v02.pdf). 

 

I use AOCL-16.1.0.196-windows and DE1 BSP for Altera SDK OpenCL 16.0. 

 

I totally have no idea about this problem. I have found very little solutions about this.  

 

Would you give me some suggestion? 

Thank you!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
195 Views

Your kernel is too big to fit on the device. The actual compilation log is quartus_sh_compile.log. If you check that file, it will tell you what resource you are running out of. You probably need to modify the settings of the kernel. Since you are using an open-source project, I recommend contacting the author and asking him for help.

Altera_Forum
Honored Contributor II
195 Views

 

--- Quote Start ---  

Your kernel is too big to fit on the device. The actual compilation log is quartus_sh_compile.log. If you check that file, it will tell you what resource you are running out of. You probably need to modify the settings of the kernel. Since you are using an open-source project, I recommend contacting the author and asking him for help. 

--- Quote End ---  

 

Thank you! It's useful for me!
Reply