On Tue, Dec 30, 2014 at 9:35 PM, Gruenke,Matt
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of John Bytheway Sent: Tuesday, December 30, 2014 23:14 To: boost@lists.boost.org Subject: Re: [boost] [compute] Review
On 2014-12-30 21:46, Gruenke,Matt wrote:
Async host <-> device copies only exist at the low level (command_queue). They sidestep the issue by using raw pointers and size.
I dispute that. There's a copy_async to which you need not supply a command_queue. It seems high-level to me.
Good catch. I looked for it, but somehow missed it. I fully agree that the constraint should be specified & enforced at compile-time.
I've added a static_assert() for this, see pull-request #404 [1]. -kyle [1] https://github.com/kylelutz/compute/pull/404