-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Change return of get_native for opencl backend to vector #4952
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
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b238663
[SYCL] Change return of get_native for opencl backend to vector
denis-kabanov 4c2e805
Add windows symbols and test description
denis-kabanov 88cec15
Merge branch 'sycl' of https://github.com/intel/llvm into return_even…
denis-kabanov 5aeabee
Move type using
denis-kabanov ec0cec5
Clang format
denis-kabanov c8d0410
Change return type to backend_return_t
denis-kabanov 1bbece1
Clang format for test
denis-kabanov 9414705
Preparing to use macro
denis-kabanov 924416c
macros fix need
denis-kabanov 13b320b
Macros completed
denis-kabanov 6451498
Merge branch 'sycl' of https://github.com/intel/llvm into return_even…
denis-kabanov f307803
Revert change in interop-level-zero-2020 test
denis-kabanov 921d7b8
Reverse the macro meaning
denis-kabanov c8c70f7
Clang-format
denis-kabanov 6be718a
Merge branch 'sycl' of https://github.com/intel/llvm into return_even…
denis-kabanov 4e419ea
Add note to PreprocessorMacros.md
denis-kabanov 2545b56
Rename to SYCL2020_CONFORMANT_APIS
denis-kabanov 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -DSYCL2020_CONFORMANT_APIS %s | ||
// expected-no-diagnostics | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// This test checks that sycl::get_native<sycl::backend::opencl>(event) return | ||
// std::vector<cl_event> when backend = opencl, according to: | ||
// SYCL™ 2020 Specification (revision 3) | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include <sycl/sycl.hpp> | ||
|
||
int main() { | ||
#ifdef SYCL_BACKEND_OPENCL | ||
sycl::queue Queue; | ||
if (Queue.get_backend() == sycl::backend::opencl) { | ||
sycl::event event = Queue.submit([&](sycl::handler &cgh) { | ||
cgh.single_task<class event_kernel>([]() {}); | ||
}); | ||
std::vector<cl_event> interopEventVec = | ||
sycl::get_native<sycl::backend::opencl>(event); | ||
} | ||
#endif | ||
} |
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.