I have 2 arrays, i am declaring the global work size equal to the size of one array, and in each thread i am comparing every element of one array with all the other elements of the 2nd array - this i am doing using a for loop.
Is there a better method to compare both the arrays in which i don't need to use the for loop??