Intel Software: Quartus Prime

Type: Answers

Area: OpenCL


Last Modified: September 24, 2018
Version Found: v17.1 Update 2
Bug ID: FB: 516662;

Error message : "Error: Optimizer FAILED -dbg-info-enabled --grif --soft-elementary-math=false --fas=false --wiicm-disable=true "kernel_top.1.bc" -o "kernel_top.kwgid.bc"

Description

Due to a problem with the Intel® FPGA SDK for OpenCL™ software technology, you may see this error after a long compilation time. This is caused by a large number of storage operations to undefined elements performed by the h_updating_graph_mask_buf_0 and h_graph_visited_buf_0 arrays functions.

Workaround/Fix

To fix this problem add the following lines in the kernel_top.cl file:

***************
*** 22,30 ****
    
  #pragma ACCEL interface
variable=k depth=1
    bool stop;
    do {
-     bool h_updating_graph_mask_buf_0[1000000];
-     bool h_graph_visited_buf_0[1000000];
  //if no thread
changes this value then the loop stops
      stop =
false;
  //omp_set_num_threads(num_omp_threads);
--- 22,30 ----
    
  #pragma ACCEL interface
variable=k depth=1
    bool stop;
+   bool
h_updating_graph_mask_buf_0[1000000];
+   bool
h_graph_visited_buf_0[1000000];
    do {
  //if no thread
changes this value then the loop stops
      stop =
false;
  //omp_set_num_threads(num_omp_threads);

This problem will be fixed in a future release of the Intel FPGA SDK for OpenCL