Skip to content

Use persistent storage for SubmissionBatch in SerializingCommandQueue. - #2431

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:queue-storage
Jul 8, 2020
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:queue-storage

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

@ScottTodd ScottTodd added the runtime Relating to the IREE runtime library label Jul 7, 2020
@ScottTodd
ScottTodd requested a review from antiagainst July 7, 2020 20:18

@antiagainst antiagainst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome. Thanks Scott for addressing this!

void AbortQueueSubmission();

private:
struct PendingBatch {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we can just embed this struct inside FencedSubmssion. But it's a small issue so your call. :)

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.

@ScottTodd
ScottTodd merged commit 644e6be into iree-org:main Jul 8, 2020
@ScottTodd
ScottTodd deleted the queue-storage branch July 8, 2020 16:41
@GMNGeoffrey GMNGeoffrey mentioned this pull request Jul 9, 2020
@GMNGeoffrey

Copy link
Copy Markdown
Member

This is my current best-guess culprit for timeouts I see trying to import #2462 into google:

Looks like a deadlock maybe?

PC: @     0x55cd6526d68c  (unknown)  absl::Mutex::Lock()
    @     0x55cd65220723       1744  FailureSignalHandler()
    @     0x7f0f2f0709a0  2082045344  (unknown)
    @     0x55cd642c6489        160  iree::hal::vulkan::EmulatedTimelineSemaphore::Wait()
    @     0x55cd6414299d         48  iree_hal_semaphore_wait_with_deadline
    @     0x55cd64126698        240  iree::hal::(anonymous namespace)::HALModuleState::ExSubmitAndWait()
    @     0x55cd6412aea2        128  iree::vm::packing::DispatchFunctorVoid<>::Call()
    @     0x55cd6413f471        320  iree::vm::NativeModule<>::ModuleBeginCall()
    @     0x55cd6414cdbf        320  iree_vm_bytecode_dispatch
    @     0x55cd6414ac16         80  iree_vm_bytecode_module_begin_call()
    @     0x55cd6418b297        224  iree_vm_invoke_within
    @     0x55cd6418b04c       8288  iree_vm_invoke

GMNGeoffrey added a commit that referenced this pull request Jul 10, 2020
GMNGeoffrey added a commit that referenced this pull request Jul 10, 2020
…andQueue." (#2465)

Reverts #2431

This commit is causing mysterious timeouts in some vulkan configurations. We'll continue to investigate, but to unblock integration, going to revert for now. Lack of GPU testing in OSS is hurting us 😢

@ScottTodd confirmed that reverting eliminates the timeouts.
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