How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

Michael Dorner
Hej, I need to ask the kernel for 'CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE'. How can it be done with JOCL? I find it in the bindings for the kernel, but not method for that.
Thanks alot
Reply | Threaded
Open this post in threaded view
|

Re: How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

gouessej
Administrator
Hi

It's in JOCL, here. You have to use clGetKernelWorkGroupInfo.

Edit.: I'm really a beginner in OpenCL, I just looked at the Java documentation to answer you.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

michaeldorner
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

Wade Walker
Administrator
For JOCL, it looks like the right way to get this is CLKernel.getWorkGroupInfo(), with a flag value of CLKernelBinding.CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE.
Reply | Threaded
Open this post in threaded view
|

Re: How to get "CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE"

gouessej
Administrator
Thank you, it seems to be more straightforward than my suggestion.
Julien Gouesse | Personal blog | Website