Skip to content

Commit 3d04af8

Browse files
Merge pull request #978 from IntelPython/use-full-type-qualifier-in-triul_ctor
Fixed compilation error on triul_ctor on Windows with Python 3.10
2 parents a798e90 + f0e6afc commit 3d04af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tensor/libtensor/source/triul_ctor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ usm_ndarray_triul(sycl::queue exec_q,
229229
(*shp_host_shape_and_strides)[3 * nd - 1] = dst_strides[src_nd - 1];
230230

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

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

0 commit comments

Comments
 (0)