Skip to content

Add hal/cts:command_queue_test. - #2196

Merged
ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:hal-cts
Jul 9, 2020
Merged

ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:hal-cts

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

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.

@ScottTodd ScottTodd added the runtime Relating to the IREE runtime library label Jun 12, 2020
@ScottTodd

Copy link
Copy Markdown
Member Author

Trying to merge this revealed some issues on Linux/SwiftShader/with the timeline semaphore extension layer.

@ScottTodd

Copy link
Copy Markdown
Member Author

Trying to merge this revealed some issues on Linux/SwiftShader/with the timeline semaphore extension layer.

Removed ready to pull - I'll investigate and merge manually.

@GMNGeoffrey
GMNGeoffrey changed the base branch from master to google June 23, 2020 17:35
@GMNGeoffrey
GMNGeoffrey changed the base branch from google to main June 26, 2020 21:15
@ScottTodd
ScottTodd force-pushed the hal-cts branch 2 times, most recently from 4a93e30 to c0357f8 Compare June 30, 2020 15:25
@ScottTodd
ScottTodd changed the base branch from main to google June 30, 2020 15:25
@ScottTodd
ScottTodd changed the base branch from google to main June 30, 2020 15:26

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Rebased and tested with emulated timeline semaphores from #2208. This is not ready for merge yet.

Comment on lines +120 to +124
EXPECT_TRUE(
IsDeadlineExceeded(command_queue->WaitIdle(absl::Milliseconds(100))));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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()));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

With emulated timeline semaphores (introduced in #2208), this never completes

ScottTodd added 2 commits July 9, 2020 08:12
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.
@ScottTodd

Copy link
Copy Markdown
Member Author

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.

@ScottTodd
ScottTodd merged commit 4399963 into iree-org:main Jul 9, 2020
@ScottTodd
ScottTodd deleted the hal-cts branch July 9, 2020 15:48
@GMNGeoffrey GMNGeoffrey mentioned this pull request Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants