Open kafi350 opened 2 years ago
Both boost.compute and vexcl vectors are just wrappers around raw opencl buffers, so the conversion is possible both ways.
// Wrap boost.compute vectors into vexcl vectors (no data is copied):
compute::vector
this is the way to wrap a compute vector but is it possible to wrap a vex vector?
See examples in <vexcl/external/boost_compute.hpp>
, which uses Boost.compute algorithms with vexcl vectors:
As given in the documentation we can do it for the vexcl but not for the compute vecotrs.