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

[UR] Improvements to align CTS and Spec for Device #16746

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

Conversation

martygrant
Copy link
Contributor

@martygrant martygrant commented Jan 23, 2025

Migrated from oneapi-src/unified-runtime#2597

  • Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case - Restructure GetInfo CTS tests to use separate tests instead of a switch oneapi-src/unified-runtime#2290
  • Remove the UR/OpenCL Device enum map function - no point maintaining both a switch case and a separate mapping function
  • Update some spec wording for consistency
  • Add missing Device info enums to OpenCL adapater
  • Add new urDevicePartition test for checking UR_DEVICE_INFO_PARENT_DEVICE
  • Move UUR_RETURN_ON_FATAL_FAILURE and UUR_ASSERT_SUCCESS_OR_UNSUPPORTED to join similar macros in checks.h
  • Update spec to say info queries that return char[] are null-terminated
  • Add missing unsupported device enums to HIP adapter
  • Reverted bindless image types back to size_t
  • Moved ComponentDevices test to a separate PlatformTest derived fixture
  • Added new ASSERT_QUERY_RETURNS_VALUE macro as a helper to validate simple numerical GetInfo queries
  • Added new stringPropertyIsValid helper function to validate string queries
  • Add missing unsupported device enums to HIP adapter

@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from d914426 to 73d6fd0 Compare January 24, 2025 14:27
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 73d6fd0 to 09eac51 Compare January 24, 2025 16:16
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 09eac51 to 09ddfe9 Compare January 24, 2025 16:56
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 09ddfe9 to 2c8710b Compare January 27, 2025 11:06
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 2c8710b to 3b88cac Compare January 27, 2025 11:58
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 3b88cac to fcdb51b Compare February 3, 2025 12:00
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from fcdb51b to c5c7e20 Compare February 3, 2025 17:42
@martygrant martygrant marked this pull request as ready for review February 6, 2025 10:59
@martygrant martygrant requested a review from a team as a code owner February 6, 2025 10:59
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from c5c7e20 to ff4f7dc Compare February 20, 2025 15:51
@martygrant martygrant requested review from a team as code owners February 20, 2025 15:51
@martygrant martygrant changed the title [UR] Update tag for Improvements to align CTS and Spec for Device [UR] Improvements to align CTS and Spec for Device Feb 20, 2025
Copy link
Contributor

@przemektmalon przemektmalon left a comment

Choose a reason for hiding this comment

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

Bindless images LGTM

@martygrant
Copy link
Contributor Author

The failing cuda e2e job is a flaky test being tracked here #17026 HostInteropTask/interop-task-cuda-buffer-migrate.cpp

- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case - oneapi-src/unified-runtime#2290
- Remove the UR/OpenCL Device enum map function - no point maintaining both a switch case and a separate mapping function
- Update some spec wording for consistency
- Add missing Device info enums to OpenCL adapater
- Add new urDevicePartition test for checking UR_DEVICE_INFO_PARENT_DEVICE
- Move UUR_RETURN_ON_FATAL_FAILURE and UUR_ASSERT_SUCCESS_OR_UNSUPPORTED to join similar macros in checks.h
- Update spec to say info queries that return char[] are null-terminated
- Add missing unsupported device enums to HIP adapter
- Reverted bindless image types back to size_t
- Moved ComponentDevices test to a separate PlatformTest derived fixture
- Added new ASSERT_QUERY_RETURNS_VALUE macro as a helper to validate simple numerical GetInfo queries
- Added new stringPropertyIsValid helper function to validate string queries
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