|
Boost : |
Subject: Re: [boost] [compute] Review
From: Gruenke,Matt (mgruenke_at_[hidden])
Date: 2014-12-30 21:46:26
-----Original Message-----
From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of John Bytheway
Sent: Tuesday, December 30, 2014 21:23
To: boost_at_[hidden]
Subject: Re: [boost] [compute] Review
> On 2014-12-29 02:01, Kyle Lutz wrote:
>> Currently it will just buffer the entire range into a std::vector<T>
>> and then copy that to the device. If this is a bottleneck it could
>> also be improved to copy the data in smaller batches. Let me know if
>> you encounter issues with this.
>
> Does this also work with copy_async? I presume not, because there
> would be troubles with the lifetime of the temporary vector...
Async host <-> device copies only exist at the low level (command_queue). They sidestep the issue by using raw pointers and size.
For a summary of synchronization-related exception safety issues, see my last message on Synchronization.
Matt
________________________________
This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk