kylelutz/compute — pull request #167 by kylelutz (2014-07-03 05:54:21+00:00)
Title: Add check for packed structs in BOOST_COMPUTE_ADAPT_STRUCT()

This adds a compile-time check for non-padded structs in the
BOOST_COMPUTE_ADAPT_STRUCT() macro. Also updates the macro to
add "__attribute__((packed))" to the OpenCL struct definition.