Altera_Forum
Honored Contributor
7 years agoComplex loop exit condition
Hello,
I have a very simple code with a few lines, but the outer loop is not pipelined due to "Loop exit condition unresolvable at iteration initiation". Inner loop is pipelined well with II=1. Can anybody suggest any idea? Thanks __attribute__ ((task)) kernel void compute_BFS0( __global const unsigned* restrict ovid_of_edge, __global const unsigned* restrict start_edge, __global const unsigned* restrict end_edge, __global unsigned* restrict node_data ) { unsigned ei; unsigned si; unsigned ovid; for (unsigned i = 0; i < 1000; i++ ) // iterates over graph nodes { si = start_edge; // sequential readei = end_edge; // sequential read for(unsigned j = si; j < ei; j++) // iterates over node's outgoing edges { ovid = ovid_of_edge[j]; // child node. sequential read. node_data[ovid] = 1000; // random-access write } } } //kernel