Skip to content

[WIP][DO-NOT-MERGE] explore bindless image #22046

Draft
cperkinsintel wants to merge 15 commits into
intel:syclfrom
cperkinsintel:cperkins-b-i-immediate-command-list
Draft

[WIP][DO-NOT-MERGE] explore bindless image #22046
cperkinsintel wants to merge 15 commits into
intel:syclfrom
cperkinsintel:cperkins-b-i-immediate-command-list

Conversation

@cperkinsintel
Copy link
Copy Markdown
Contributor

Changing tests to use immediate command lists (only) for semaphores.

// command lists (see sycl_ext_oneapi_bindless_images.asciidoc).
sycl::queue q{
{sycl::property::queue::in_order{},
sycl::ext::intel::property::queue::immediate_command_list{}}};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since these properties are only needed for external semaphores, perhaps you could condition their inclusion on the useSemaphores variable:

    sycl::property_list props{
        useSemaphores
            ? {sycl::property::queue::in_order{},
               sycl::ext::intel::property::queue::immediate_command_list{}}
            : sycl::property_list{}};
    sycl::queue q{props};

uditagarwal97 pushed a commit that referenced this pull request May 19, 2026
Revert "[L0] Use immediate command lists for external semaphore
wait/signal (#21930)"

This reverts commit e928aae.


By putting the semaphore on an immediate command list, but still using
the original regular command list for the other graphic operations, we
introduce some unsoundness that can lead to races and problems where the
regular command list is the default. The better choice in the short term
is to simply require that SYCL queues that are intended for semaphore
usage use immediate command lists. I have a separate PR (in progress)
that will make that change to the docs and tests and introduces a
verification.
#22046
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants