i write a simple kernel that is
global void f(int left,int right, int res)
but i could not send size as parameters, in c, function f(int arr) is ok (i tried) but in cuda when i used like this error is occured. in this case, i must define size parameter with #define or define as global parameter. but i don t want to do this. i want to send size parameter as other argument. how can i achieve this or what is wrong with this?
thanks!..