Hi all -

I'm building a small set of OpenCL executable math functions with some
friends.  I'm having a hard time getting the "tanh" function to come out.
 When I compile the following code:

*# OpenCL (C99) kernel code, compiled*
*prg = cl.Program(ctx, """*
*__kernel void ApplyTanh(__global const float *matrix, __global float
*target) {*
* int gid = get_global_id(0);*
* target[gid] = tanh(matrix);*
*}*
*""").build()*

I get this error:

*"/tmp/OCL7750T1.cl", line 4: error: no instance of overloaded function
"tanh"*
*          matches the argument list*
*            argument types are: (const __global float *)*
*  target[gid] = tanh(matrix);*

What on earth can I do to get the OpenCL kernel code to execute a
hyperbolic tangent?

Thanks,
Gus
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to