Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failures in clCopyImage and clFillImage #2013

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yifancom
Copy link

Fix failures in clCopyImage and clFillImage:

Log:
$ ./test_clFillImage 1Dbuffer
Initializing random seed to 0.
Supports single precision denormals: YES
sizeof( void*) = 8 (host)
sizeof( void*) = 8 (device)
1Dbuffer...
Running 1D Image Buffer Fill tests...
[CL_R CL_SIGNED_INT8 1]
Error: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from device[CL_R CL_SIGNED_INT16 1]
Error: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from deviceError: Could not get CL_DEVICE_NUMERIC_VERSION from device[CL_R CL_SIGNED_INT32 1]
^C

CL_DEVICE_NUMERIC_VERSION is OpenCL 3.0 and break on other OpenCL versions.
Use more generic APIs.

Change-Id: I9a2cfdf0798c865c5db24a750a6bcef5d0a1d71d
Signed-off-by: Yifan Zhang <[email protected]>
clGetDeviceInfo fails with current arguments due to imcompatible  major_version.

Change-Id: Idda5992a6a2b7d11a51e5b91863afe504d492151
Signed-off-by: Yifan Zhang <[email protected]>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants