Altera_Forum
Honored Contributor
8 years agooptimization report not shown - data dependency
Hi all!
I'm using the aoc version: Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler Version 17.0.2 Build 602 Copyright (C) 2017 Intel Corporation And.. doesn't generate the optimisation report on the log file :confused:kernel void serially_execute (global int * restrict A, global int * restrict B,
global int * restrict result,
unsigned N) {
int sum = 0;
for (unsigned i = 0; i < N; i++) {
int res;
for (int j = 0; j < N; j++) {
sum += A;
}
sum += B;
}
*result = sum;
}
Another question, why is data dependency on sum ? Because the outer loop is reading while a new value is computed in the inner loop? Also this: for(int i=0;i < r;i++) {
for(int j=i+1;j<r;j++) {
fcont=0;
lcontsum = 0;
for (int z=0; z < (c>>2); z++) {
# pragma unroll
for(int w=0; w < 4;w++) {
aux = buff;
lcont = aux + j;
lcontsum += lcont;
}
front +=lcontsum;
}
a = fcont;
}
}
}
Any dependency? the report doesn't say nothing but pipelined on the inner loop :oops: