I am doing some code in cuda. I am new in cuda so i do not know much things related to that.
I want to ask that “Can we pass structure pointer to kernel ?”
waiting for response
can i do like this?
Pixel is the structure having 4 bytes
//i thing above line will create the buffer on GPU of sizeof(PIXEL)*size
//is it correct? then can i do like this
//passing pointer to the kernel
can i create a pointer for each structure?
like i want to access the each structure’s element into 1 thread.
like P[i].xyz = c[i];
p is structure array and c is character array.
can i do that?