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

Align Kernel CTS and Specification. #2444

Merged
merged 14 commits into from
Jan 8, 2025
Merged

Conversation

isaacault
Copy link
Contributor

  • Separate parameterized tests. Progresses Restructure GetInfo CTS tests to use separate tests instead of a switch #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 isaacault requested a review from a team as a code owner December 10, 2024 16:20
@github-actions github-actions bot added conformance Conformance test suite issues. specification Changes or additions to the specification labels Dec 10, 2024
Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

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

Please address the CI failures

scripts/core/kernel.yml Show resolved Hide resolved
test/conformance/kernel/urKernelRetain.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added the loader Loader related feature/bug label Dec 11, 2024
@isaacault
Copy link
Contributor Author

Please address the CI failures

Some of these failures are due to the DPC++ version being used being 10 months old. This predates the max_work_group_size kernel property implementation causing compile failures.

@kbenzie
Copy link
Contributor

kbenzie commented Dec 11, 2024

Please address the CI failures

Some of these failures are due to the DPC++ version being used being 10 months old. This predates the max_work_group_size kernel property implementation causing compile failures.

Okay, I guess we either need to disable these tests & the building the congruent kernel programs or figure out how to make an up to date DPC++ work without that change.

sizeof(backend), &backend, nullptr));
if (backend == UR_PLATFORM_BACKEND_OPENCL ||
backend == UR_PLATFORM_BACKEND_LEVEL_ZERO) {
// Older intel drivers don't attach any default attributes and newer ones force walk order to X/Y/Z using special attribute.
Copy link
Contributor

Choose a reason for hiding this comment

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

never noticed that clang-format doesn't touch comments like this, would prefer if it was manually formatted to maintain the < 80 per line

Suggested change
// Older intel drivers don't attach any default attributes and newer ones force walk order to X/Y/Z using special attribute.
// Older intel drivers don't attach any default attributes and newer
// ones force walk order to X/Y/Z using special attribute.

@isaacault isaacault requested a review from a team as a code owner December 13, 2024 14:03
@github-actions github-actions bot added the level-zero L0 adapter specific issues label Dec 13, 2024
Copy link
Contributor

@nrspruit nrspruit left a comment

Choose a reason for hiding this comment

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

LGTM for L0

* 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
- Generate source.
- Address inaccurate comments.
- Remove unnecessary scope block.
- Remove SetUp override for test.
- Format comment to width 80.
@isaacault
Copy link
Contributor Author

Match files updated for CI. Issues #2528 and #2529 opened to track the related match file additions.

@isaacault
Copy link
Contributor Author

DPC++ PR for CI: intel/llvm#16555

@kbenzie kbenzie added the ready to merge Added to PR's which are ready to merge label Jan 8, 2025
@isaacault isaacault merged commit 1918293 into oneapi-src:main Jan 8, 2025
69 checks passed
martygrant pushed a commit to intel/llvm that referenced this pull request Jan 9, 2025
PR for CI purposes.

UR PR: oneapi-src/unified-runtime#2444

---------

Co-authored-by: Kenneth Benzie (Benie) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues. level-zero L0 adapter specific issues loader Loader related feature/bug 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.

5 participants