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

Extend clSetDefaultDeviceCommandQueue test coverage #1271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jainvikas8
Copy link

Fixes #23

Add some positive testing for clSetDefaultDeviceCommandQueue

CL_QUEUE_PROPERTIES, (PROPERTIES | CL_QUEUE_ON_DEVICE_DEFAULT), 0
};

if (get_device_cl_version(deviceID) <= Version(3, 0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be >= as CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES does not exist prior to 3.0.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea is to skip if it doesn't exists

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but at the moment this test will be run on a 2.1 implementation so calling clGetDeviceInfo with CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES will (should) return CL_INVALID_VALUE.

@jainvikas8
Copy link
Author

Not sure, why code format check is failing, as they are none are changes related to this PR

@jainvikas8 jainvikas8 changed the title Extend clSetDefaultDeviceCommandQueue test coverage [WIP] Extend clSetDefaultDeviceCommandQueue test coverage Oct 13, 2021
@jainvikas8 jainvikas8 changed the title [WIP] Extend clSetDefaultDeviceCommandQueue test coverage Extend clSetDefaultDeviceCommandQueue test coverage Oct 13, 2021
@jainvikas8
Copy link
Author

This change is ready for review.

Fixes KhronosGroup#23

Signed-off-by: Vikas Katariya <vikas.katariya@arm.com>
@ahesham-arm
Copy link
Contributor

@kpet Rebased and CI checks are passing.

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.

clSetDefaultDeviceCommandQueue isn't tested at all
4 participants