I am using shared memory in my program
In the first 2 dimesions I am passing the input data for 1 image and in the third (N) I want to pass the number of the images to create.
The problem is that N maybe up to 2000 , so it goes above the size of shared memory.
How can I deal with this?
Note , that I am using:
dim3 dimGrid( (Cols / tile_width) , (Rows / tile_width) , N ); dim3 dimBlock( tile_width , tile_width);
As far as I know I don’t have any control to how the work is distributed among the MPs.My card has 14MPs.
Also , another problem I have is that the N (number of images) is defined in a cpp file which calls an extern function which is defined in cu file.
And N is an argument to a kernel function.How can I use N in my shared variable?Because right now I am not using N (as the 3rd dimension but I am writting directly the number of the images).