-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add support for sycl::ext::oneapi::property::queue::use_priority #7523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
042d9cf
[SYCL] Add support for sycl::ext::oneapi::property::queue::use_priority
smaslov-intel e023104
add symbols
smaslov-intel 5b5ba66
print queue priority under ZE_DEBUG
smaslov-intel 3eeeca9
added feature test macro SYCL_EXT_ONEAPI_QUEUE_PRIORITY
smaslov-intel 50a9feb
added extension doc
smaslov-intel 1c4d539
update sumbols from Release build
smaslov-intel 02803cd
address comments on doc
smaslov-intel 00d1678
chmod
smaslov-intel 8a25c46
change use_priority to priority_low and priority_high
smaslov-intel 9750e53
chmod
smaslov-intel a42dd40
clang-format
smaslov-intel ae196c6
add priority_normal
smaslov-intel b1e320c
add abi symbols
smaslov-intel 721526b
[NFC] update doc with suggestions
smaslov-intel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
107 changes: 107 additions & 0 deletions
107
sycl/doc/extensions/supported/sycl_ext_oneapi_queue_priority.asciidoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
= sycl_ext_oneapi_queue_priority | ||
|
||
:source-highlighter: coderay | ||
:coderay-linenums-mode: table | ||
|
||
// This section needs to be after the document title. | ||
:doctype: book | ||
:toc2: | ||
:toc: left | ||
:encoding: utf-8 | ||
:lang: en | ||
:dpcpp: pass:[DPC++] | ||
|
||
// Set the default source code type in this document to C++, | ||
// for syntax highlighting purposes. This is needed because | ||
// docbook uses c++ and html5 uses cpp. | ||
:language: {basebackend@docbook:c++:cpp} | ||
|
||
|
||
== Notice | ||
|
||
[%hardbreaks] | ||
Copyright (C) 2022-2022 Intel Corporation. All rights reserved. | ||
|
||
Khronos(R) is a registered trademark and SYCL(TM) and SPIR(TM) are trademarks | ||
of The Khronos Group Inc. OpenCL(TM) is a trademark of Apple Inc. used by | ||
permission by Khronos. | ||
|
||
== Contact | ||
|
||
To report problems with this extension, please open a new issue at: | ||
|
||
https://github.com/intel/llvm/issues | ||
|
||
|
||
== Dependencies | ||
|
||
This extension is written against the SYCL 2020 revision 6 specification. All | ||
references below to the "core SYCL specification" or to section numbers in the | ||
SYCL specification refer to that revision. | ||
|
||
== Status | ||
|
||
This extension is implemented and fully supported by {dpcpp}. | ||
[NOTE] | ||
==== | ||
Although {dpcpp} supports this extension on all backends, it is currently used | ||
only on Level Zero. Other backends ignore the properties defined in this specification. | ||
==== | ||
|
||
== Overview | ||
|
||
Introduce SYCL queue properties specifying the desired priority of a queue. | ||
These priorities are a hint and may be ignored if not supported by | ||
underlying backends. | ||
|
||
== Specification | ||
|
||
=== Feature test macro | ||
|
||
This extension provides a feature-test macro as described in the core SYCL | ||
specification. An implementation supporting this extension must predefine | ||
the macro `SYCL_EXT_ONEAPI_QUEUE_PRIORITY` to one of the values defined | ||
in the table below. Applications can test for the existence of this macro | ||
to determine if the implementation supports this feature, or applications | ||
can test the macro's value to determine which of the extension's features | ||
the implementation supports. | ||
|
||
[%header,cols="1,5"] | ||
|=== | ||
|Value | ||
|Description | ||
|
||
|1 | ||
|Initial version of this extension. | ||
|=== | ||
|
||
=== API of the extension | ||
|
||
This extension adds support for new properties for SYCL queue constructors | ||
taking properties list: | ||
|
||
```c++ | ||
namespace sycl::ext::oneapi::property::queue { | ||
|
||
class priority_normal { | ||
public: | ||
priority_normal() = default; | ||
}; | ||
class priority_low { | ||
public: | ||
priority_low() = default; | ||
}; | ||
class priority_high { | ||
public: | ||
priority_high() = default; | ||
}; | ||
|
||
} // namespace | ||
``` | ||
The new properties hint the SYCL runtime that the queue gets the specified | ||
priority for execution if supported by underlying target runtimes. These | ||
properties are hints and may safely be ignored by an implementation. | ||
|
||
It is illegal to specify multiple differrent priority hints for the same queue. | ||
Doing so causes the `queue` constructor to throw a synchronous `exception` with | ||
the `errc::invalid` error code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.