Setting the kernel argument for the local memory

How do we set the kernel argument for the local memory in the host code???

Please, read the specification and manuals the next time you ask questions that can be answered by a more thorough investigation. It’s not that hard and you save people’s time.

If you’d done so, you would read for clSetKernelArg: If the argument is declared with the __local qualifier, the arg_value entry must be NULL.