I have a question regarding how to compare 2 buffers avoiding serialization.
I have a two dimension integer buffer that has aproximatly 30000000x5.
Like in: int Buf1 (Forget about how it is allocated is just to clarify)
The Second buffer is just a pointer to 5 integers like in: int Buf2
I have to be able to compare the 5 integers in Buf2 with the complete buffer in Buf1.
My problem is the next, if a create a kernel with two buffers, I know that I will have no trouble reading each one of the sub buffers in Buf1 with each thread.
1 - But what will happens with the second buffer?.
2 - Every thread will read from the same address?.
3 - Is this going to produce a serialization between all threads?
4- If this happens, do you have any idea how to avoid this?
Thanks in advance for your help