@@ -262,33 +262,6 @@ std::pair<sycl::event, sycl::event>
262
262
simplified_shape, simplified_a_strides, simplified_b_strides,
263
263
simplified_res_strides, a_offset, b_offset, res_offset);
264
264
265
- if (nd == 1 && simplified_a_strides[0 ] == 1 &&
266
- simplified_b_strides[0 ] == 1 && simplified_res_strides[0 ] == 1 )
267
- {
268
- // Special case of contiguous data
269
- auto contig_fn = isclose_contig_dispatch_vector[a_b_typeid];
270
-
271
- if (contig_fn == nullptr ) {
272
- py::dtype a_b_dtype_py = dtype_from_typenum (a_b_typeid);
273
- throw std::runtime_error (
274
- " Contiguous implementation is missing for " +
275
- std::string (py::str (a_b_dtype_py)) + " data type" );
276
- }
277
-
278
- int a_elem_size = a.get_elemsize ();
279
- int b_elem_size = b.get_elemsize ();
280
- int res_elem_size = res.get_elemsize ();
281
- auto comp_ev = contig_fn (
282
- exec_q, nelems, py_rtol, py_atol, py_equal_nan,
283
- a_data + a_elem_size * a_offset, b_data + b_elem_size * b_offset,
284
- res_data + res_elem_size * res_offset, depends);
285
-
286
- sycl::event ht_ev =
287
- dpctl::utils::keep_args_alive (exec_q, {a, b, res}, {comp_ev});
288
-
289
- return std::make_pair (ht_ev, comp_ev);
290
- }
291
-
292
265
auto strided_fn = isclose_strided_scalar_dispatch_vector[a_b_typeid];
293
266
294
267
if (strided_fn == nullptr ) {
0 commit comments