Repository navigation
Add hal/cts:command_queue_test. - #2196
Conversation
|
Trying to merge this revealed some issues on Linux/SwiftShader/with the timeline semaphore extension layer. |
Removed |
4a93e30 to
c0357f8
Compare
| EXPECT_TRUE( | ||
| IsDeadlineExceeded(command_queue->WaitIdle(absl::Milliseconds(100)))); |
There was a problem hiding this comment.
With emulated timeline semaphores, this returns OK and not DeadlineExceeded
|
|
||
| // Signal the wait semaphore, work should begin and complete. | ||
| ASSERT_OK(wait_semaphore->Signal(1ull)); | ||
| ASSERT_OK(signal_semaphore->Wait(1ull, absl::InfiniteFuture())); |
There was a problem hiding this comment.
With emulated timeline semaphores (introduced in #2208), this never completes
#2431) SubmissionBatch contains `absl::Span<T>` members and thus must be copied if the data it wraps is expected to live beyond the scope of `CommandQueue::Submit()`: https://github.com/google/iree/blob/d7835cad52c4e74bc71f36a98567b144c92f3837/iree/hal/command_queue.h#L33-L48 https://github.com/google/iree/blob/d7835cad52c4e74bc71f36a98567b144c92f3837/iree/hal/command_queue.h#L82-L86 This was caught by ASAN's [`sanitize-address-use-after-scope`](https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterScope) running the tests in #2196.
Roughly forked from hal/host:async_command_queue_test, with generalizations made for testing across HAL backends. For example, I omitted failure tests without a clear way to trigger or simulate failures that would be recognized by all backends.
Several test cases fail for different reasons with timeline semaphore emulation.
|
Rebased and disabled tests on Vulkan, since most are failing with timeline semaphore emulation. They pass my machine using native NVIDIA drivers + native timeline semaphore support. It'll be easier to debug these tests further once they are merged. |
Roughly forked from
hal/host:async_command_queue_test, with generalizations made for testing across HAL backends. For example, I omitted error handling tests without a clear way to trigger or simulate failures that would be recognized by all backends.