-
Notifications
You must be signed in to change notification settings - Fork 29
Feature/backend specific queues v2 #93
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
Feature/backend specific queues v2 #93
Conversation
…fo::device_type>().
-- Queues now need to be queried using both backend and device type. -- Fix test cases. -- Platform interfaces now can return the list of available backends. -- Fix skiped tests. -- Expand the platform interface to provide backend info. -- Move backend enums to platfrom from context. -- Add comments. -- Store opencl_cpu, opencl_gpu, and level0_gpu queues inside queue manager. -- Fixed enum typedefs, added cython dict to store backends and device types.
About static variables.
- Rename SyclQueueManager to SyclRTManager - Minor stylistic changes: -- reorder functions alphabetically. -- Move all enums into separate file. - Add C API to get backend from queue, and also add a way to check if a queue is the current queue. - Update sycl_core to match C API.
33decb1
to
c96c50d
Compare
-- Added a way to check if two DPPLSyclQueueRef and the SyclQueue wrappers point to the same sycl queue. -- Same thing for DPPLSyclContextRef and SyclContext.
87f3460
to
d6bcd74
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.
Small questions and remarks from me. Not worth to block the PR. LGTM.
Requires gtest 1.10 to build (I was not able to execute |
Error handling needs to be improved:
Note that I am not sure what the arguments of |
Notice the TBB warning on the first invocation. It would be nice if |
I think this is good overall, and should be merged asap. |
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 overall.
The TBB message is coming from
|
Please do not merge. I root caused the TBB messages, and preparing a fix |
Solution is not to create context on devices that are not of the requested device type or not from the requested backend. ``` Python 3.7.7 (default, Jul 14 2020, 22:02:37) Type 'copyright', 'credits' or 'license' for more information IPython 7.17.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import dpctl In [2]: with dpctl.device_context('opencl:gpu'): ...: print(1) ...: 1 In [3]: with dpctl.device_context('level0:gpu'): ...: print(1) ...: 1 ```
Ok, I pushed the fix. Please look it over and merge. |
…rupd/dpctl into feature/backend_specific_queues_v2
* CC=clang.exe * CC=clang-cl.exe
Merging now. Thanks for the reviews! |
Rebased on top of master.