Recently i am facing a situation well i would like to explain it with an example which goes below
//operation being done
calculate some value h here than,
well this is my condition i how can i solve this dependency problem for previous_pixel. Its taking the value zero for all threads.
Thanks in advance
Can you post a bit more about the dimensions you are using ?
What is frame_width, What is the workgroup size and so on.
Thanks a lot for your replay.
I got the solution for that , I am running one row in one thread because dependency was there only inside a row, each row were independent of other so got the solution as shown below.
Initially I was doing like this
Global_worksize=(height)//taking only height number of threads
}//end of for loop
Now the problem is solved but
Number of parallel threads have been reduced.