Skip to content

Adjust examples for changes in dpctl4pybind11 #950

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/pybind11/external_usm_allocation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ to dpctl.memory entities using `__sycl_usm_array_interface__`.

# Building extension

```
```bash
source /opt/intel/oneapi/compiler/latest/env/vars.sh
CXX=dpcpp CC=dpcpp python setup.py build_ext --inplace
CXX=icpx CC=icx python setup.py build_ext --inplace
python -m pytest tests
python example.py
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ py::list tolist(DMatrix &m)

PYBIND11_MODULE(_external_usm_alloc, m)
{
// Import the dpctl extensions
import_dpctl();

py::class_<DMatrix> dm(m, "DMatrix");
dm.def(py::init(&create_matrix),
"DMatrix(dpctl.SyclQueue, n_rows, n_cols)");
Expand Down
1 change: 1 addition & 0 deletions examples/pybind11/onemkl_gemv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ set_source_files_properties(${_sycl_gemm_sources}
PROPERTIES
COMPILE_OPTIONS "-O3"
)
target_link_options(${py_module_name} PRIVATE -fsycl-device-code-split=per_kernel)

add_executable(standalone_cpp
EXCLUDE_FROM_ALL
Expand Down
Loading