I am new to GPGPU. May I ask a very simple question?
How does gpu solve data dependency? Just like the following code:
When the warp is issued, will it have to first issue the warp used for calculation the first line?
void saxpy(int n, float a, float x, float y)
int i = blockIdx.xblockDim.x + threadIdx.x;
if (i < n)
y[i] = ax[i] + y[i]; //first line
x[i] = y; //second line
Thanks in advance