Hi, I have a function that takes in a 2D array pointer as its function parameter, I want to use it in the function as page-locked memory.
This is the function.
extern “C” void SobelfilterGPU(int dir,int height,int width,float* input,float* output)
I want input and output both to be page-locked so I can use stream in the function.
I want it to have the property of this.
cudaMallocHost((void **)&h_DataA, DATA_SIZE);
but the input parameters are already allocated in some other C function with Malloc.
Any help would be appreciated, thanks.