-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add platform info query to identify its backend adapter #407
Conversation
@kbenzie : please review/merge |
I don't see why there are errors reported in https://github.com/oneapi-src/unified-runtime/actions/runs/4601026787/jobs/8128372658?pr=407
|
@smaslov-intel you need to include generated sources in the PR: you should run |
Thanks @igchor !
Is the correct flow described anywhere? |
It looks a different clang-format |
I think there is only this line in the README: |
Yes, it looks like a wrong clang-format version, but it's strange - we check for specific version in CMake and provide our own rules. What version do you have installed (if any)? I've pushed regenerated sources formatted with clang-15, the diff is much smaller. |
$ clang-format --version |
Ok, I think we didn't actually check for clang-version when doing 'generate': #408 |
Is this information not already available via the I'm wary about the extensibility of an enum. |
The |
Okay, while duplicating information isn't ideal I can accept it. Where do you expect this to be used, is this passed through the SYCL RT up to the application? |
The immediate use is for SYCL users to select the underlying backend (via ONEAPI_DEVICE_SELECTOR). Today this selection is via choosing a PI plugin hardcoded in SYCL RT, and with our move to UR we need this new functionality since no longer have visibility into UR adapters. |
Ah I see, so its related to #220. When we discussed this in the WG we came to the conclusion this logic would get pulled into UR once PI has been removed. Perhaps when that happens this query would no longer be necessary. |
Unless all the device filtering is moved into UR we will need this interface to stay. Note, SYCL language has intrinsic notion of "backend", so I think this will have to stay forever. E.g. see https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_oneapi_filter_selector.asciidoc |
@kbenzie : can this be merged, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sure. We aim for two approvals so I was waiting for another reviewer. |
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
This allows users to select wanted adapter/platform.