Skip to content

[UR] Issue with rect buffer operations in level-zero adapter #17187

@Xewar313

Description

@Xewar313

Describe the bug

Rect read and write do not work correctly in level-zero adapter v1. The respective tests in files urEnqueueMemBufferReadRect.cpp and urEnqueueMemBufferWriteRect.cpp are disabled, and when enabled result in failure and/or segfault.
Analogous operations in command buffer (urCommandBufferAppendMemBufferWriteRectExp, urCommandBufferAppendMemBufferReadRectExp) also don't work as mentioned in #17159 (comment)

Moreover some tests that read/write 2d to or from 3d fail in adapter v2 (#17159 - commented cases in /unified-runtime/test/conformance/exp_command_buffer/rect_read.cpp (or rect_write.cpp))

To reproduce

  1. Remove UUR_KNOWN_FAILURE_ON(uur::LevelZero{}); from test/conformance/enqueue/urEnqueueMemBufferWriteRect.cpp and test/conformance/enqueue/urEnqueueMemBufferReadRect.cpp (or enable commented cases in adapter v2 /unified-runtime/test/conformance/exp_command_buffer/rect_read.cpp (or rect_write.cpp))
  2. Run conformance tests using level zero adapter

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglevel-zeroIssues related to the Level Zero backendunified-runtime

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions