I have an array of several millions of integer values(input). I would like to perform function F(input[x]) on them individually and separately, using GPU, nvidia gtx 780ti or gtx 980, then have the results array (output) back in main memory, each output element output[x] corresponding to input array element input[x]. F() does not contain any floating point calculations.
How do i organize such a task of this size array(millions of elements) properly for gpu ?
Im looking for a proper GPU substitute to this :
for (int x=0; x<5000000; x++)
output[x] = F(input[x]);
output[x] = F(input1[x], input2[x]), but it is a trivial matter to simplify it further to what you are asking about. - Robert Crovella