OCL-dev / ocl-icd

OpenCL ICD Loader (free software)
BSD 2-Clause "Simplified" License
76 stars 23 forks source link

FIX ABI issues. #25

Closed Kerilk closed 1 year ago

Kerilk commented 2 years ago

Using enums, while safe in most place, can be an ABI issue due to compiler specific behavior regarding enums backing type. This removes the cl_icld_info enum type and maps it to a cl_uint to keep coherence with the rest of the OpenCL API/ABI.

This could break clinfo on 16bit big endian platforms if one exists.

I am keeping the test as it is currently. It should trigger on problematic platforms, hopefully someone will report such a platform.