-
Notifications
You must be signed in to change notification settings - Fork 30
Feature/queue manager v2 #310
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
Closed
Closed
Conversation
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
- Add a new dpctl_sycl_device_manager module to store a cache of root devices along with a cached context per device. - The device manager includes functions to get a vector of devices and the number of root devices of a specific type and backend combination. - Move the DPCTLDevice_DumpInfo() to a new module called dpctl_sycl_device_manager, and rename it to DPCTLDeviceMgr_PrintDeviceInfo(). - Introduce a new _sycl_device_factory module in the Python API. - Move device selector functions to the _sycl_device_factory module. - Add functions to get list of SYCL devies in dpctl.
…tl into feature/queue_manager_v2
1. error_handler function typedef changed 2. DPCTLDevice_Copy, DPCTLQueue_Copy added 3. DPCTLDeviceMgr_GetContextAndDevicePair exported as well as the struct it returns.
…se them in tests intsead of has_cpu_queue,etc.
SyclQueue(device_selector, props) SyclQueue(sycl_device, props) SyclQueue(sycl_context, sycl_device, props) create SyclQueue from given data. A default asynch error handler is used. The error handler raises SyclAsynchronousError.
Removed get_num_queues, has_cpu_queues, has_gpu_queues. The context manager accepts device selector string, device, or a queue itself.
This way _SyclDevice, which can be create with data attributes default using _SyclDevice() can not be used (no methods defined). Modified __repr__ for SyclDevice to reflect backend, device kind and the the device name as reported by dev.get_info<sycl::info::device::name>().
…eing copied to the layout
…er_v2 Fixed merge conflicts in dpctl/_backend.pxd, dpctl/_sycl_device.pxd and dpctl/_sycl_device.pyx Tests pass locally.
This way the handler does not use `PyErr_WriteUnraisable`, but uses `PyErr_PrintEx` instead.
to skip tests that would create queue from a device for which it is impossible (like accelerator device with driver installed, but hardware absent)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR represent a work-in-progress that reached a milestone ready for an initial feedback.
It contains changes to
SyclDevice
(incorporating changes in #277) andSyclQueue
, allowing users to create device/queue from filter selector string,SyclQueue
can be created from a filter selector string, from an instance ofSyclDevice
, or from a pair ofSyclContext
andSyclDevice
.One can (or will be able to in a near future) set queue properties during the construction.
Device context manager has change, its argument is used to create a new queue, which is temporarily set as global queue.
@diptorupd @1e-to @PokhodenkoSA
Closes #311
Closes #312
Closes #100
Closes #266