Skip to content

Fixed compilation error on triul_ctor on Windows with Python 3.10 #978

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 1 commit into from
Nov 8, 2022
Merged
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 dpctl/tensor/libtensor/source/triul_ctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ usm_ndarray_triul(sycl::queue exec_q,
(*shp_host_shape_and_strides)[3 * nd - 1] = dst_strides[src_nd - 1];

py::ssize_t *dev_shape_and_strides =
sycl::malloc_device<ssize_t>(3 * nd, exec_q);
sycl::malloc_device<py::ssize_t>(3 * nd, exec_q);
if (dev_shape_and_strides == nullptr) {
throw std::runtime_error("Unabled to allocate device memory");
}
sycl::event copy_shape_and_strides = exec_q.copy<ssize_t>(
sycl::event copy_shape_and_strides = exec_q.copy<py::ssize_t>(
shp_host_shape_and_strides->data(), dev_shape_and_strides, 3 * nd);

py::ssize_t inner_range = src_shape[src_nd - 1] * src_shape[src_nd - 2];
Expand Down