compute icon indicating copy to clipboard operation
compute copied to clipboard

Allow kernel argument to take custom struct by value

Open rosenrodt opened this issue 6 years ago • 2 comments

By specializing template<T> struct set_kernel_arg when expanding BOOST_COMPUTE_ADAPT_STRUCT, kernel input argument can now take custom struct by value. This potentially utilizes constant memory of the compute device

rosenrodt avatar May 09 '19 10:05 rosenrodt

Coverage Status

Coverage remained the same at 84.019% when pulling e1b96b36457997087952df710ceb722ff4ca5e8f on rosenrodt:pr-kernel-pass-struct-by-value into 36c89134d4013b2e5e45bc55656a18bd6141995a on boostorg:master.

coveralls avatar May 09 '19 15:05 coveralls

It looks like Apple platform regards custom struct as invalid kernel argument. That's weird because my 2016 Macbook works just fine

rosenrodt avatar May 10 '19 00:05 rosenrodt