Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

optical flow example Optimizer FAILED

Hi,

I was trying to run the optical flow example on Sockit. When I compile the kernel with the full flow(without -c), I can generate the kernel file.(about 25mins)

But if I want to run the first stage only(with -c) or to profile the kernel with(--profile), after quite a long time compiling(2hours or more), then I got an error:

"Optimizer FAILED!

Refer to optical_folw/optical_flow.log for details."

I checked the log file, but it is empty.

I know with "--profile", it is much slower and may use more resources, but if I remember correctly, this kernel I generated the first time only consumed around 45%. So there should be enough resources, right?

But for the first stage compiling, I really don't know why I can not get the estimated resource usage report.

(PS: I tried this with -c two or three times, all optimizer failed.)

Thanks

Shaodong

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Shaodong

    "Optimizer FAILED" message when compiling optical_flow.cl with --profile seems to be a bug in the compiler. We will work on fixing this for a future release of the compiler. Thank you for reporting it.

    To get estimated resource usage, make sure to supply --report option to aoc. Note that the estimated report is generated after the optimizer.