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

Restructure GetInfo CTS tests to use separate tests instead of a switch #2290

Open
4 of 13 tasks
martygrant opened this issue Nov 6, 2024 · 0 comments
Open
4 of 13 tasks
Labels
conformance Conformance test suite issues.

Comments

@martygrant
Copy link
Contributor

martygrant commented Nov 6, 2024

As per #2272 (comment) most of the GetInfo CTS tests use a switch statement to test all of the possible info type enumerations (e.g. https://github.com/oneapi-src/unified-runtime/blob/main/test/conformance/context/urContextGetInfo.cpp#L43). It may be better that these are modified to be separate and individual tests.

@martygrant martygrant added the conformance Conformance test suite issues. label Nov 6, 2024
isaacault added a commit to isaacault/unified-runtime that referenced this issue Dec 10, 2024
* Separate parameterized tests. Progresses oneapi-src#2290.
* urKernelGetGroupInfo CompileWorkGroupSize test modified to use distinct
  dimensions.
* urKernelSetArgPointer no longer returns invalid argument size.
* Testcases added:
    * urKernelGetGroupInfo CompileMaxWorkGroupSize
    * urKernelGetGroupInfo CompileMaxLinearWorkGroupSize
    * urKernelGetSubGroupInfo CompileNumSubGroups
    * urKernelRetain CheckReferenceCount
    * urKernelRelease CheckReferenceCount
    * urKernelSetArgMemObj InvalidEnumeration
martygrant added a commit to martygrant/unified-runtime that referenced this issue Dec 12, 2024
- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case (oneapi-src#2290)
- Remove the UR/OpenCL enum map function - no point maintaining both a switch case and a separate mapping function
- Update some spec wording for consistency
- Add missing info enums to OpenCL adapater
- Add new urDevicePartition test for checking UR_DEVICE_INFO_PARENT_DEVICE
isaacault added a commit to isaacault/unified-runtime that referenced this issue Dec 13, 2024
* Separate parameterized tests. Progresses oneapi-src#2290.
* urKernelGetGroupInfo CompileWorkGroupSize test modified to use distinct
  dimensions.
* urKernelSetArgPointer no longer returns invalid argument size.
* Testcases added:
    * urKernelGetGroupInfo CompileMaxWorkGroupSize
    * urKernelGetGroupInfo CompileMaxLinearWorkGroupSize
    * urKernelGetSubGroupInfo CompileNumSubGroups
    * urKernelRetain CheckReferenceCount
    * urKernelRelease CheckReferenceCount
    * urKernelSetArgMemObj InvalidEnumeration
isaacault added a commit to isaacault/unified-runtime that referenced this issue Dec 16, 2024
* Separate parameterized tests. Progresses oneapi-src#2290.
* urKernelGetGroupInfo CompileWorkGroupSize test modified to use distinct
  dimensions.
* urKernelSetArgPointer no longer returns invalid argument size.
* Testcases added:
    * urKernelGetGroupInfo CompileMaxWorkGroupSize
    * urKernelGetGroupInfo CompileMaxLinearWorkGroupSize
    * urKernelGetSubGroupInfo CompileNumSubGroups
    * urKernelRetain CheckReferenceCount
    * urKernelRelease CheckReferenceCount
    * urKernelSetArgMemObj InvalidEnumeration
martygrant added a commit to martygrant/unified-runtime that referenced this issue Dec 18, 2024
- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case (oneapi-src#2290)
- Remove the UR/OpenCL enum map function - no point maintaining both a switch case and a separate mapping function
- Update some spec wording for consistency
- Add missing info enums to OpenCL adapater
- Add new urDevicePartition test for checking UR_DEVICE_INFO_PARENT_DEVICE
martygrant added a commit to martygrant/unified-runtime that referenced this issue Dec 18, 2024
- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case (oneapi-src#2290)
- Remove the UR/OpenCL enum map function - no point maintaining both a switch case and a separate mapping function
- Update some spec wording for consistency
- Add missing info enums to OpenCL adapater
- Add new urDevicePartition test for checking UR_DEVICE_INFO_PARENT_DEVICE
martygrant added a commit to martygrant/unified-runtime that referenced this issue Dec 19, 2024
- Rework urDeviceGetInfoTest to move all enums to their own tests instead of a switch case (oneapi-src#2290)
- Remove the UR/OpenCL enum map function - no point maintaining both a switch case and a separate mapping function
- Update some spec wording for consistency
- Add missing 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
isaacault added a commit to isaacault/unified-runtime that referenced this issue Jan 6, 2025
* Separate parameterized tests. Progresses oneapi-src#2290.
* urKernelGetGroupInfo CompileWorkGroupSize test modified to use distinct
  dimensions.
* urKernelSetArgPointer no longer returns invalid argument size.
* Testcases added:
    * urKernelGetGroupInfo CompileMaxWorkGroupSize
    * urKernelGetGroupInfo CompileMaxLinearWorkGroupSize
    * urKernelGetSubGroupInfo CompileNumSubGroups
    * urKernelRetain CheckReferenceCount
    * urKernelRelease CheckReferenceCount
    * urKernelSetArgMemObj InvalidEnumeration
isaacault added a commit to isaacault/unified-runtime that referenced this issue Jan 8, 2025
* Separate parameterized tests. Progresses oneapi-src#2290.
* urKernelGetGroupInfo CompileWorkGroupSize test modified to use distinct
  dimensions.
* urKernelSetArgPointer no longer returns invalid argument size.
* Testcases added:
    * urKernelGetGroupInfo CompileMaxWorkGroupSize
    * urKernelGetGroupInfo CompileMaxLinearWorkGroupSize
    * urKernelGetSubGroupInfo CompileNumSubGroups
    * urKernelRetain CheckReferenceCount
    * urKernelRelease CheckReferenceCount
    * urKernelSetArgMemObj InvalidEnumeration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues.
Projects
None yet
Development

No branches or pull requests

1 participant