ukoethe / vigra

a generic C++ library for image analysis
http://ukoethe.github.io/vigra/
Other
407 stars 191 forks source link

OpenCL interoperability: types, arithmetic, conversion and utility #74

Open tesch1 opened 12 years ago

tesch1 commented 12 years ago

This is a feature-request / place-to-capture a design document.

Summary

It would be nice to have support for OpenCL interoperation with Vigra MultiArrays.

Details

This can be at various levels:

Comment on this issue with suggestions, feature-requests, complaints, etc...

Status

I have started working on support for the datatypes, so far have NumericTraits and some Accessors started. I'm totally open to changing the names, or any suggestions. My start is available here: https://github.com/tesch1/vigra/blob/feature-opencl/include/vigra/multi_opencl.hxx feel free to add/subract/pull-request with fixes/features.

For example, so far, the accessor for the .z component of a cl_float3 is declared as: struct cl_double3Accessor_z; and the write accessor is struct double3WriteAccessor_z

ukoethe commented 12 years ago

Please conduct this development in a branch of its own (e.g. 'feature-opencl').