maelteir

Unable to implement generic data types

Discussion created by maelteir on Jan 10, 2010
Latest reply on Jan 12, 2010 by maelteir

Hi,

I'd like to implement a generic function that can work with any data type; integer, float...

When I passed the input as (__global void*) to the kernel function, I wasn't able to cast it to any other data type. In the runtime, I received "Invalid type conversion".

Any help would be appreciated.

Outcomes