-
Notifications
You must be signed in to change notification settings - Fork 770
[SYCL] Add the notion of default contexts. #2805
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
Conversation
…l use the platform's default context instead of creating a new context for the specified device. Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
… code path Signed-off-by: James Brodman <james.brodman@intel.com>
…d result in no default context Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
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
@jbrodman Could you please point to the extension document? |
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Signed-off-by: James Brodman <james.brodman@intel.com>
Tests should be fixed after intel/llvm-test-suite#433 |
SYCL :: Plugin/level_zero_dynamic_batch_test.cpp is failing. It is known to be flaky, not affected by this changeset. |
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
Co-authored-by: Alexey Bader <alexey.bader@intel.com>
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
@bader @romanovvlad do you know what's wrong with cuda build? It's been stuck for over a day, but I don't see a huge queue of other PRs. |
No. |
The job status is still not updated. I reported this to tooling team. The difference between last commit and the previous one is just one comment, and the previous commit has this job passed. Can we assume that tests pass? |
@romanovvlad, @alexbatashev, unittests do not pass on GitHub machines. |
A default context is now defined per platform. The default context initially contains all devices in the platform. Queue creation will use the device's platform's default context instead of creating a new context with that device. The new extension introduces ext_oneapi_get_default_context() member function to the platform class. DPC++ runtime allows control of this feature with SYCL_ENABLE_DEFAULT_CONTEXTS env variable. It is enabled by default on Linux and disabled on Windows.
A default context is now defined per platform. The default context initially contains all devices in the platform.
Queue creation will use the device's platform's default context instead of creating a new context with that device.
The new extension introduces
ext_oneapi_get_default_context()
member function to the platform class.DPC++ runtime allows control of this feature with SYCL_ENABLE_DEFAULT_CONTEXTS env variable. It is enabled by default on Linux and disabled on Windows.