Skip to content

[SYCL][Tests] Migrate selected UR API checks from e2e to unit tests#22129

Open
crystarm wants to merge 1 commit into
intel:syclfrom
crystarm:tests/ur-checks-to-unittests
Open

[SYCL][Tests] Migrate selected UR API checks from e2e to unit tests#22129
crystarm wants to merge 1 commit into
intel:syclfrom
crystarm:tests/ur-checks-to-unittests

Conversation

@crystarm
Copy link
Copy Markdown
Contributor

Related to #18847

Summary

This PR completes step 1 from the plan in #18847 (comment):

Move simple UR trace/FileCheck based SYCL E2E tests to SYCL unit tests using UrMock.

Removed E2E tests

  • sycl/test-e2e/Basic/alloc_pinned_host_memory.cpp
  • sycl/test-e2e/Basic/buffer/native_buffer_creation_flags.cpp
  • sycl/test-e2e/Basic/buffer/subbuffer_overlap.cpp
  • sycl/test-e2e/Basic/fill_accessor_ur.cpp
  • sycl/test-e2e/Basic/use_pinned_host_memory.cpp
  • sycl/test-e2e/EnqueueFunctions/barrier.cpp
  • sycl/test-e2e/EnqueueFunctions/mem_advise.cpp
  • sycl/test-e2e/EnqueueFunctions/prefetch.cpp

Coverage mapping (E2E -> unit tests)

Buffer-related UR checks

Covered by sycl/unittests/buffer/BufferUrApi.cpp:

  • FillAccessorUsesExpectedUrCommandTypes
  • SubbufferOverlapUsesExpectedUrPartitionRegions
  • NativeBufferCreationUsesHostPointerFlag
  • AllocPinnedHostMemoryUsesAllocHostPointerFlag
  • UsePinnedHostMemoryUsesAllocHostPointerFlag
  • UsePinnedHostMemoryWithHostPointerThrows

Enqueue functions UR checks

Covered by sycl/unittests/Extensions/EnqueueFunctionsEvents.cpp:

  • PrefetchAllFormsUseExpectedUrCalls
  • MemAdviseAllFormsUseExpectedUrCalls
  • BarrierAndPartialBarrierUseExpectedUrCalls

@crystarm crystarm marked this pull request as ready for review May 27, 2026 13:33
@crystarm crystarm requested a review from a team as a code owner May 27, 2026 13:33
@crystarm crystarm requested a review from cperkinsintel May 27, 2026 13:33
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.

1 participant