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

Corrected test_vulkan to use specific platform/device from harness #2154

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

Conversation

shajder
Copy link
Contributor

@shajder shajder commented Nov 20, 2024

Fixes #1926 according to task description

additional corrections:

-several warnnings removed
-unused or dead code limited in affected procedures
-cosmetic modernization
test_conformance/vulkan/test_vulkan_api_consistency_for_1dimages.cpp
test_conformance/vulkan/test_vulkan_api_consistency_for_3dimages.cpp
@shajder shajder marked this pull request as ready for review November 26, 2024 10:35
@joshqti
Copy link
Contributor

joshqti commented Dec 10, 2024

This is a nice change, it works for us. The test harness is a good addition.

Comment on lines +124 to +125
errNum = clGetDeviceInfo(deviceId, CL_DEVICE_UUID_KHR, CL_UUID_SIZE_KHR,
uuid, nullptr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we ever check that the cl_khr_device_uuid extension is supported for these tests?

If not, is it acceptable behavior to throw std::runtime_error? I think it would be better to skip the tests, if cl_khr_device_uuid is a dependency.

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

Successfully merging this pull request may close these issues.

Fix test_vulkan to allow running it on any platform and VkDevice rather than platform 0, device 0
4 participants