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
Care should be taken to ensure that only enum types available from the OpenCL version reported by cl.h are used. For example, don't try to use info enums from OpenCL 1.2 like CL_DEVICE_PRINTF_BUFFER_SIZE if CL_VERSION_1_2 is not defined.
The text was updated successfully, but these errors were encountered:
Right now, the
get_info<T>(enum)
function allows users to retrieve values from the correspondingclGet*Info()
functions.However, the current API requires users to specify both the enum name (e.g.
CL_DEVICE_LOCAL_MEM_SIZE
) and the value type (e.g.cl_ulong
).We should add specializations for the known enum types with hard-coded return types. For example, the following test should pass:
Care should be taken to ensure that only enum types available from the OpenCL version reported by
cl.h
are used. For example, don't try to use info enums from OpenCL 1.2 likeCL_DEVICE_PRINTF_BUFFER_SIZE
ifCL_VERSION_1_2
is not defined.The text was updated successfully, but these errors were encountered: