[BUG] opencl-interop get_device_type
always returns DeviceType::ALL
#382
Labels
get_device_type
always returns DeviceType::ALL
#382
Description
The
get_device_type
function transmutes the value-1
intoDeviceType
or returnsDeviceType::ALL
; however, the enum variant that corresponds to the value(-1i32 as u64)
isDeviceType::ALL
. This does not seem to be the intended behaviour.The value of
-1
corresponds toAFCL_DEVICE_TYPE_UNKNOWN
in arrayfire, whilst-1
corresponds toCL_DEVICE_TYPE_ALL
incl-sys
The text was updated successfully, but these errors were encountered: