-
Notifications
You must be signed in to change notification settings - Fork 738
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
[SYCL][Graph] Skip Graph tests based on sycl-ls output #12812
Conversation
0059d02
to
4039f62
Compare
Hint. Here is an example: https://github.com/intel/llvm/blob/sycl/clang/test/Interpreter/CUDA/lit.local.cfg. All tests from clang/test/Interpreter/CUDA/ directory are skipped if host doesn't support CUDA. |
4039f62
to
f10cb86
Compare
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. Just minor comments.
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
fa5a111
to
2005d26
Compare
2005d26
to
823a3e9
Compare
@intel/llvm-reviewers-runtime Could I get a review on this 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.
Changes LGTM! Since it is now a change to the extension however, I would like @reble, @Bensuo, and/or @mfrancepillois to re-approve it.
sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc
Outdated
Show resolved
Hide resolved
Also check for OpenCL backend support for `cl_khr_command_buffer` when determining if SYCL-Graphs support should be reported.
e519ebf
to
a616cfa
Compare
ping @intel/dpcpp-tools-reviewers for review |
@AlexeySachkov @sarnex @MrSidims Could one of you review on behalf of @intel/dpcpp-tools-reviewers 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.
DeviceConfigFile.td
LGTM, apology for the delay
@intel/llvm-gatekeepers This is good to merge now |
The graph extension tests are currently skipped during execution for devices which don't support the graphs extension. However, this early return causes the tests to be reported as passed and makes it hard from looking at the results to know if the tests actually stressed the graphs code or not.
Improved this situation by changing the SYCL-Graph device info query to an aspect such that
sycl-ls --verbose
will outputext_oneapi_graph
for supported devices. This can then be used to inform the LIT config and set a requirement for tests, enabling the tests to be obviously skipped for devices that don't support graphs.To enable setting this requirement in
lit.local.cfg
files some extra directories have been created, in particularUnsupportedDevice
which contains tests that don't have a requirement as the tests verify expected errors are thrown when using the graphs API with unsupported devices.The removal of the device info query means that we can no longer report if a device emulates support for SYCL-Graph, however we currently have no such implementations as they haven't yet deemed to provide enough value. This is technically an ABI breaking change however due to the removal of symbols, but SYCL-Graph is currently an experimental extension so such changes may be permitted.