Results 1 to 1 of 1

Thread: Use of Template kernel in opencl

Threaded View

  1. #1
    Newbie
    Join Date
    Jun 2013
    Posts
    5

    Exclamation 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
    Last edited by skyadav008; 07-26-2013 at 04:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •