Use strstr to check if fp16 supported#1611
Conversation
|
Is Doesn't seem completely clear from the docs here: https://man.opencl.org/clGetDeviceInfo.html If not, then it wouldn't be safe to use string functions like |
Upon reviewing the OpenCL 3.0 specification, I found that it does not explicitly mention whether the CL_DEVICE_EXTENSIONS string returned by clGetDeviceInfo is guaranteed to be null-terminated. The specification only states that the returned value is a "space-separated list of extension names" without specifying the null-termination. |
72a0027 to
a4e5f65
Compare
* Use strstr to check if fp16 supported * Ensure ext_buffer is null terminated
* Use strstr to check if fp16 supported * Ensure ext_buffer is null terminated
* Use strstr to check if fp16 supported * Ensure ext_buffer is null terminated
No description provided.