Used clang-format off, clang-format on to avoid include reordering#588
Merged
oleksandr-pavlyk merged 2 commits intomasterfrom Sep 16, 2021
Merged
Used clang-format off, clang-format on to avoid include reordering#588oleksandr-pavlyk merged 2 commits intomasterfrom
oleksandr-pavlyk merged 2 commits intomasterfrom
Conversation
Contributor
Author
cd examples/pybind11/use_dpctl_syclqueue
CXX=dpcpp CC=dpcpp python setup.py build_ext --inplacethen Python 3.7.10 (default, Jun 4 2021, 06:52:02)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.25.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import dpctl, pybind11_example as e
In [2]: d = dpctl.SyclDevice()
In [3]: (e.get_device_global_mem_size(d), e.get_device_local_mem_size(d))
Out[3]: (53718335488, 65536)
In [4]: d.print_device_info()
Name Intel(R) UHD Graphics [0x9bca]
Driver version 1.1.20678
Vendor Intel(R) Corporation
Profile FULL_PROFILE
Filter string level_zero:gpu:0
In [5]: quit
|
Collaborator
Contributor
|
@oleksandr-pavlyk Can we add the code snippet you have pasted above as an example? That way we can refer back to it and it will be useful for users like me. Thank you! |
a87dca1 to
982fcc5
Compare
Contributor
Author
Calls added to |
reazulhoque
approved these changes
Sep 16, 2021
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
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.
Fixed clang-format induced issue with ordering of includes in the pybind11 example.
The "dpctl_sycl_types.h" must be included before dpctl's CPython API headers (e.g.
_sycl_queue_api.h). Otherwise compilation errors withDPCTLSyclQueueRefis underfined.Implemented two more functions, retrieving useful device properties, such as Global and local memory size in bytes. (see #587)