Skip to content

fix: wrong data type for CL_PROGRAM_NUM_DEVICES#19

Open
MrTroble wants to merge 2 commits into
KhronosGroup:mainfrom
MrTroble:main
Open

fix: wrong data type for CL_PROGRAM_NUM_DEVICES#19
MrTroble wants to merge 2 commits into
KhronosGroup:mainfrom
MrTroble:main

Conversation

@MrTroble

Copy link
Copy Markdown

for clGetProgramInfo must be cl_uint (4 byte) instead of size_t (8 byte for some) [1]
for clGetContextInfo must be cl_uint (4 byte) instead of size_t (8 byte for some) [2]

See:
[1] https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/clGetProgramInfo.html#:~:text=CL%5FPROGRAM%5FNUM%5FDEVICES
[2] https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/clGetContextInfo.html#:~:text=CL%5FCONTEXT%5FNUM%5FDEVICES

@CLAassistant

CLAassistant commented Apr 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Kerilk

Kerilk commented Apr 26, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the contribution looking good from here, I'll fix the CI issues, seems we haven't updated the scripts in a while.

@MrTroble

MrTroble commented May 1, 2026

Copy link
Copy Markdown
Author

Thank you, that would be appreciated.

@MrTroble

Copy link
Copy Markdown
Author

@Kerilk Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants