Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Waiting on a queue after graph submission causes incorrect behaviour. #47

@Bensuo

Description

@Bensuo

It appears that calling queue.wait() after the graph has been submitted causes incorrect behaviour/results in the example code, like so:

  // Execute several iterations of the graph
  for (unsigned n = 0; n < iterations; n++) {
    testQueue.submit([&](handler &h) { h.exec_graph(graphExec); });
  }
  // Perform a wait on all graph submissions.
  testQueue.wait();

In reality this should at the very least do nothing if the graph has already been executed (as happens in the current prototype).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Graph ImplementationRelated to DPC++ implementation and testingbugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions