Skip to content

Mirror intel/llvm commits #2769

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

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

Mirror intel/llvm commits #2769

wants to merge 9 commits into from

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented May 24, 2025

Automated changes by create-pull-request GitHub action

martygrant and others added 9 commits May 24, 2025 00:39
… OpenCL (#18423)

Fixes #2440

[clEnqueueMemFillINTEL returns CL_INVALID_VALUE if dst_ptr is NULL, or
if dst_ptr is not aligned to pattern_size bytes.
](https://registry.khronos.org/OpenCL/extensions/intel/cl_intel_unified_shared_memory.html)

This PR adds a memory alignment check before calling
`clEnqueueMemFillINTEL` to ensure we can safely call it, otherwise take
the host side copy path.

Re-enables the `USM/fill_any_size.cpp` and also moves
`checkUSMImplAlignment` from Hip into a common header so it can be used
in both Hip and OpenCL.
Hoists the `UUR_KNOWN_FAILURE_ON()` introduced in
intel/llvm#18611 up to the test fixture to also
cover `urEnqueueCommandBufferExpTest.SerializeAcrossQueues` in addition
to `urEnqueueCommandBufferExpTest.SerializeOutofOrderQueue`.
Failing gtest doesn't fail right away. Wrap all calls to base class
"SetUp" methods in the `UUR_RETURN_ON_FATAL_FAILURE` macro.

This also includes cases where these functions were the last line in
the function, making it a NFC, but updating those for consistency.
This reverts commit 44ed9b74e290bbd3a00575af974194c7b3d07e35, but
excludes the problematic changes to jobs.
An initial implementation of urQueueGetInfo to help pass more e2e tests.
Note that this PR does not yet address thread safety of the Queue API -
this will be done in a subsequent PR.

Fixes at least `Basic/in_order_queue_status_khr_empty.cpp` on NativeCPU.
When building UR tests in a dpcpp build (which is disabled by default),
some warnings are flagged, which this patch fixes. Specifically:

* Marking fixture functions as `override` where appropriate.
* Removing casts `const char *` -> `void *`.
…aviour in code (#18652)

Current documentation states the `UR_LAYER_FULL_VALIDATION ` env var
enables `UR_LAYER_PARAMETER_VALIDATION` and `UR_LAYER_LEAK_CHECKING` but
in the
[code](https://github.com/intel/llvm/blob/375974ee85bef7e504550a0e7595d109bfe9bcd7/unified-runtime/source/loader/layers/validation/ur_valddi.cpp#L12313)
it also enables `UR_LAYER_BOUNDS_CHECKING` and
`UR_LAYER_LIFETIME_VALIDATION`.
@kbenzie kbenzie requested a review from a team as a code owner May 24, 2025 00:39
@github-actions github-actions bot added ci/cd Continuous integration/devliery common Changes or additions to common utilities conformance Conformance test suite issues. specification Changes or additions to the specification level-zero L0 adapter specific issues hip HIP adapter specific issues opencl OpenCL adapter specific issues native-cpu Native CPU adapter specific issues command-buffer Command Buffer feature addition/changes/specification labels May 24, 2025
Copy link
Contributor

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 will be updated with new instructions for contributing to Unified Runtime.

PR Migration

All open PRs including this one will be marked with the auto-close label and shall be automatically closed after 30 days.

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.

If your PR should remain open and not be closed automatically, you can remove the auto-close label.


This is an automated comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-close ci/cd Continuous integration/devliery command-buffer Command Buffer feature addition/changes/specification common Changes or additions to common utilities conformance Conformance test suite issues. hip HIP adapter specific issues level-zero L0 adapter specific issues native-cpu Native CPU adapter specific issues opencl OpenCL adapter specific issues specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants