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

Improvements to align CTS and Spec for Device #2597

Closed

Conversation

martygrant
Copy link
Contributor

@martygrant martygrant commented Jan 22, 2025

  • 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 #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

intel/llvm#16746

@github-actions github-actions bot added loader Loader related feature/bug conformance Conformance test suite issues. images UR images specification Changes or additions to the specification experimental Experimental feature additions/changes/specification level-zero L0 adapter specific issues cuda CUDA adapter specific issues hip HIP adapter specific issues opencl OpenCL adapter specific issues native-cpu Native CPU adapter specific issues labels Jan 22, 2025
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch 4 times, most recently from 37c3c32 to b8a9271 Compare January 23, 2025 10:29
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch 3 times, most recently from 2cab273 to 1ce6d4e Compare January 23, 2025 16:17
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 1ce6d4e to 56bec8d Compare January 24, 2025 16:14
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 56bec8d to e153d00 Compare January 24, 2025 16:55
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch 2 times, most recently from caa66b2 to 7d961b4 Compare January 27, 2025 11:05
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 7d961b4 to b12864d Compare January 27, 2025 11:49
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from d626a1a to a9d9aa3 Compare February 3, 2025 16:41
martygrant added a commit to martygrant/unified-runtime that referenced this pull request Feb 3, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from a9d9aa3 to 25f9af4 Compare February 3, 2025 17:41
@martygrant
Copy link
Contributor Author

@oneapi-src/unified-runtime-cuda-write @oneapi-src/unified-runtime-hip-write @oneapi-src/unified-runtime-level-zero-write @oneapi-src/unified-runtime-native-cpu-write friendly bump for a review please, the adapter changes are very minor

martygrant added a commit to martygrant/unified-runtime that referenced this pull request Feb 5, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 25f9af4 to db3ae98 Compare February 5, 2025 16:08
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch 2 times, most recently from 2c13096 to 16d5edc Compare February 5, 2025 16:39
martygrant added a commit to martygrant/unified-runtime that referenced this pull request Feb 5, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
@coldav
Copy link
Contributor

coldav commented Feb 5, 2025

LGTM native cpu

@martygrant martygrant added the ready to merge Added to PR's which are ready to merge label Feb 6, 2025
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 16d5edc to 2ff98f8 Compare February 7, 2025 16:25
nrspruit pushed a commit to nrspruit/unified-runtime that referenced this pull request Feb 7, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
yingcong-wu pushed a commit to yingcong-wu/unified-runtime that referenced this pull request Feb 8, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
nrspruit pushed a commit to nrspruit/unified-runtime that referenced this pull request Feb 10, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
Xewar313 pushed a commit to Xewar313/unified-runtime that referenced this pull request Feb 11, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case - oneapi-src#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
@martygrant martygrant force-pushed the martin/device-cts-spec-gap-redo branch from 2ff98f8 to 11a9fd3 Compare February 14, 2025 10:20
Chenyang-L pushed a commit to intel/llvm that referenced this pull request Feb 18, 2025
…of a switch and rework various urXGetInfo tests:

- Housekeeping pass to tidy up tests, renaming and adding consts where appropriate
- Added ASSERT_QUERY_RETURNS_VALUE and uur::stringPropertyIsValid helpers from oneapi-src/unified-runtime#2597
- Used above helpers across all tests to better validate numerical and char[] queries, and reworked some char[] queries
- Removed any non useful checks on vector sizes after passing them into a urXGetInfo query
@martygrant
Copy link
Contributor Author

Unified Runtime -> intel/llvm Repo Move Notice

Information

The source code of Unified Runtime has been moved to intel/llvm under the unified-runtime top-level directory,
all future development will now be carried out there. This was done in intel/llvm#17043.

The code will be mirrored to oneapi-src/unified-runtime and the specification will continue to be hosted at oneapi-src.github.io/unified-runtime.

The contribution guide has been updated with new instructions for contributing to Unified Runtime.

PR Migration

All open PRs including this one will be labelled auto-close and shall be automatically closed after 30 days.
To allow for some breathing space, this automation will not be enabled until next week (27/02/2025).

Should you wish to continue with your PR you will need to migrate it to intel/llvm.
We have provided a script to help automate this process.


This is an automated comment.

martygrant added a commit to intel/llvm that referenced this pull request Feb 24, 2025
Migrated from oneapi-src/unified-runtime#2597

- 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
- Add missing unsupported device enums to HIP adapter
@martygrant
Copy link
Contributor Author

Migrated to intel/llvm#16746

@martygrant martygrant closed this Feb 24, 2025
kbenzie pushed a commit to kbenzie/unified-runtime that referenced this pull request Mar 3, 2025
Migrated from oneapi-src#2597

- Rework urDeviceGetInfoTest to move all enums to their own tests
instead of a switch case -
oneapi-src#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
kurapov-peter pushed a commit to kurapov-peter/llvm that referenced this pull request Mar 5, 2025
Migrated from oneapi-src/unified-runtime#2597

- 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
- Add missing unsupported device enums to HIP adapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues. cuda CUDA adapter specific issues experimental Experimental feature additions/changes/specification hip HIP adapter specific issues images UR images level-zero L0 adapter specific issues loader Loader related feature/bug native-cpu Native CPU adapter specific issues opencl OpenCL adapter specific issues ready to merge Added to PR's which are ready to merge specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants