Forum Discussion
Altera_Forum
Honored Contributor
10 years agoI seem to have found the issue. When I change the loop from
for(int i = -1; i < n_steps; ++i) to for(int i = -1; i < (int)n_steps; ++i) The error disappears. This means the compiler evaluates "(int)-1 < (uint)0" as false. As a result the entire Loop is optimized away, so in_channel_a for example is never read. I still think this is a compiler error though, does anyone here know what the OpenCL spec says about signed-unsigned comparison?