@@ -1627,7 +1627,8 @@ sycl::event parallel_radix_sort_impl(sycl::queue &exec_q,
16271627 ValueT *tmp_arr =
16281628 sycl::malloc_device<ValueT>(n_iters * n_to_sort, exec_q);
16291629 if (nullptr == tmp_arr) {
1630- sycl::free (count_ptr, exec_q);
1630+ using dpctl::tensor::alloc_utils::sycl_free_noexcept;
1631+ sycl_free_noexcept (count_ptr, exec_q);
16311632 throw std::runtime_error (" Could not allocate USM-device memory" );
16321633 }
16331634
@@ -1827,7 +1828,8 @@ radix_argsort_axis1_contig_impl(sycl::queue &exec_q,
18271828
18281829 const sycl::context &ctx = exec_q.get_context ();
18291830
1830- cgh.host_task ([ctx, workspace] { sycl::free (workspace, ctx); });
1831+ using dpctl::tensor::alloc_utils::sycl_free_noexcept;
1832+ cgh.host_task ([ctx, workspace] { sycl_free_noexcept (workspace, ctx); });
18311833 });
18321834
18331835 return cleanup_ev;
@@ -1907,7 +1909,8 @@ radix_argsort_axis1_contig_alt_impl(sycl::queue &exec_q,
19071909
19081910 const sycl::context &ctx = exec_q.get_context ();
19091911
1910- cgh.host_task ([ctx, workspace] { sycl::free (workspace, ctx); });
1912+ using dpctl::tensor::alloc_utils::sycl_free_noexcept;
1913+ cgh.host_task ([ctx, workspace] { sycl_free_noexcept (workspace, ctx); });
19111914 });
19121915
19131916 return cleanup_ev;
0 commit comments