2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-20 16:32:26 +00:00

6 Commits

Author SHA1 Message Date
Anthony C
2583e31214 Multiple refactors
- attaching user command queue failure now throws a `set_default_queue_error` exception
- default_queue() now takes optional const reference of user queue instead of pointer to user queue
- add missing items in documentation
2019-05-09 16:08:50 +08:00
Anthony C
73580396ef avoid attaching command queue more than once in debug mode 2019-04-21 21:21:44 +08:00
Anthony C
fffb9eea36 Allow manually setting default command queue via default_queue()
By doing so, the associated default device and context will automatically match the user-provided command queue. It

Guarantees unique default queue/device/context is returned when calling from multiple threads (requires config macro BOOST_COMPUTE_THREAD_SAFE)

Resolves issue #827
2019-04-21 20:39:37 +08:00
Kyle Lutz
fda67a22d0 Update GitHub links 2015-05-17 20:32:09 -07:00
Denis Demidov
0c8a59ef84 Fix core.system test
The find_device check in core.system is invalid. It could fail when same
device is supported by several platforms. In my case this happens for
Intel CPU when both AMD and Intel platforms are installed. The CPU
returned by boost::compute::system::default_device() is served by the
AMD platform, and the CPU returned by
boost::compute::system::find_device(name) is served by Intel SDK. The
only thing that could be safely asserted here is that both devices have
the same name.
2013-12-27 11:26:25 +04:00
Kyle Lutz
d34cdaac59 Initial commit 2013-03-02 15:14:17 -05:00