Skip to content

fix: wrong data type for CL_PROGRAM_NUM_DEVICES#19

Open
MrTroble wants to merge 2 commits intoKhronosGroup:mainfrom
MrTroble:main
Open

fix: wrong data type for CL_PROGRAM_NUM_DEVICES#19
MrTroble wants to merge 2 commits intoKhronosGroup: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
Copy link
Copy Markdown

CLAassistant commented Apr 22, 2026

CLA assistant check
All committers have signed the CLA.

@Kerilk
Copy link
Copy Markdown
Collaborator

Kerilk commented Apr 26, 2026

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
Copy link
Copy Markdown
Author

MrTroble commented May 1, 2026

Thank you, that would be appreciated.

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