You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that there is a weird potential mismatch between cl_context_properties, which is currently an intptr_t
It's already common, for the cl_*_properties list to accept types with different sizes.
For instance, CL_CONTEXT_INTEROP_USER_SYNC is followed by cl_bool, which is cl_uint with only 1 bit used. Well, it can just be padded with zeroes on 64-bit systems.
In #931:
It's already common, for the
cl_*_properties
list to accept types with different sizes.For instance,
CL_CONTEXT_INTEROP_USER_SYNC
is followed bycl_bool
, which iscl_uint
with only 1 bit used. Well, it can just be padded with zeroes on 64-bit systems.But now that I looked at it - there is an even weirder case:
https://man.opencl.org/clCreateSamplerWithProperties.html
CL_SAMPLER_LOD_MIN
is followed bycl_float
. But how is thiscl_float
converted tointptr_t
cl_ulong
?cl_float
in the first place...The text was updated successfully, but these errors were encountered: