View Full Version : user defined data types in OpenCL

10-12-2012, 06:12 AM
I want to use Opencl for double-double precision. I've found example on CUDA.
I how can I define a new data type typedef double2 gdd_real;(cuda definition)?
and and analogue __host__ __device__ for opencl?

cuda example
__device__ __host__
gdd_real make_dd( const double x, const double y ) {
return make_double2( x, y );