Use of Template kernel in opencl

Hello all

actually program is written in cuda ,i am trying to port in openCL.template use in kernel funtion

CUDA FUNCTION:
Tamplate<type T, bool real> global void add( __global cl_int *a, __global cl_int *b, _global cl_int *c )
{ --}
how to use in opencL

i have changed this funtion into below .

OpenCL funtion:

Tamplate<type T, bool real> __kernel void add( __global cl_int *a, __global cl_int *b, _global cl_int *c )
{---------------}

can template kernel create in openCL? .if yes then how to use( how to build and launch in our function).

if No then how to port this funtion in opencL. please any body know help me to overcome this problem