Skip to content

Commit cc63bba

Browse files
Populate more of README.md in examples
1 parent ce546e0 commit cc63bba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

examples/pybind11/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# Examples of data-parallel Python extensions written with pybind11
2+
3+
The `dpctl` provides integration header `dpctl4pybind11.hpp` which implements type casters
4+
establishing mapping between `dpctl.SyclQueue` and `sycl::queue`, `dpctl.SyclDevice` and `sycl::device`,
5+
`dpctl.SyclEvent` and `sycl::event`, etc.
6+
7+
The header also defines C++ classes `dpctl::tensor::usm_ndarray` and `dpctl::memory::usm_memory` which
8+
derive from `pybind11::object` and encapsulate Python objects of types `dpctl.tensor.usm_ndarray` and
9+
`dpctl.memory._Memory` respectively.

examples/python/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Python examples of using `dpctl`

0 commit comments

Comments
 (0)