OCL-dev / ocl-icd

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

OpenCL 3.0 #13

Closed gwawiork closed 3 years ago

gwawiork commented 4 years ago

Hi Do you have any plans with release for OpenCL 3.0. For today state of OpenCL 3.0 specification is provisional so some changes could appear. However nice to have "provisional release package"

Kerilk commented 4 years ago

I am looking into it.

gwawiork commented 4 years ago

Ok thanks. The three new API function where committed here: clCreateImageWithProperties/clCreateBufferWithProperties https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/23475bd123d43d2087323962344457fe4a0fb13c

clSetContextDestructorCallback https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/c7622e6f6f3825ec24cb87bfeea2fd8deb15053b

For today to build new ICD with these functions from Khronos repository you need to add -DENABLE_OPENCL30_PROVISIONAL=1 while generation solution

Kerilk commented 4 years ago

Support for those was added to ocl-icd here: OCL-dev/ocl-icd@e9c19dc and there: OCL-dev/ocl-icd@cbf56ca

I am reluctant to create a release with those changes as long as one of those entry points could be removed from the dispatch table, because it would break backward compatibility for applications built against this release. You can still build the loader from sources if you need it. I didn't find any issue with it. The v3.0 will be released as soon as the specification is officially adopted.

gwawiork commented 4 years ago

Thanks a lot. I did not notice these commits !