__global__ function in classes

Hi, Is it possible to create class with function which is global. I got these errors:

1>template.cu(54): warning: inline qualifier ignored for “global” function
1>template.cu(54): error: illegal combination of memory qualifiers

Or Is there other way to call class function in global function??


No, but you can do this sort of pattern:


global void kernel(void)



struct Foo


void invoke_kernel(void)