mirror of
https://github.com/boostorg/compute.git
synced 2026-01-26 18:32:48 +00:00
This changes the checks for the device type to use the bitwise-and operator instead of the equaility operator. The returned type is a bitset and this would cause errors when multiple bits were set. This fixes a bug on POCL which returns the device type as a combination of CL_DEVICE_TYPE_DEFAULT and CL_DEVICE_TYPE_CPU. Now the correct device type (device::cpu) is detected for POCL.