Altera_Forum
Honored Contributor
8 years ago#pragma ivdep seems not work
Hello,
I have a opencl kernel, like this: kernel void test() { float array[100]; # pragma ivdep do { chann_data addr = read_channel_altera(chann); int addr1 = addr.addr1; flaot data = read_channel_altera(chann1); array[addr1] = data; ... int addr2 = addr.addr2; flaot data1 = array[addr2]; ... }while(1) } After I compile the kernel, the .log file says array exist memory dependencies on store and load operation of array. So, the "#pragma ivdep" seems not work?Why? Thank you!