File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -13072,12 +13072,9 @@ void *ggml_sycl_host_malloc(size_t size) try {
13072
13072
return nullptr;
13073
13073
}
13074
13074
13075
- ggml_sycl_set_device(g_main_device);
13076
- dpct::queue_ptr main_stream = g_syclStreams[g_main_device][0];
13077
-
13078
13075
void * ptr = nullptr;
13079
13076
dpct::err0 err = CHECK_TRY_ERROR(
13080
- ptr = (void *)sycl::malloc_host(size, *main_stream ));
13077
+ ptr = (void *)sycl::malloc_host(size, dpct::get_in_order_queue() ));
13081
13078
13082
13079
if (err != 0) {
13083
13080
// clear the error
@@ -13098,9 +13095,7 @@ catch (sycl::exception const &exc) {
13098
13095
}
13099
13096
13100
13097
void ggml_sycl_host_free(void *ptr) try {
13101
- ggml_sycl_set_device(g_main_device);
13102
- dpct::queue_ptr main_stream = g_syclStreams[g_main_device][0];
13103
- SYCL_CHECK(CHECK_TRY_ERROR(sycl::free(ptr, *main_stream)));
13098
+ SYCL_CHECK(CHECK_TRY_ERROR(sycl::free(ptr, dpct::get_in_order_queue())));
13104
13099
}
13105
13100
catch (sycl::exception const &exc) {
13106
13101
std::cerr << exc.what() << "Exception caught at file:" << __FILE__
You can’t perform that action at this time.
0 commit comments