Skip to content

Commit 18b0321

Browse files
authored
Revert call to mkl_sycl_destructor (#421)
This reverts commit 89d5df6.
1 parent ef99d5b commit 18b0321

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

deps/src/onemkl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4234,10 +4234,9 @@ extern "C" int onemklXsparse_matmat(syclQueue_t device_queue, matrix_handle_t A,
42344234

42354235
// oneMKL keeps a cache of SYCL queues and tries to destroy them when unloading the library.
42364236
// that is incompatible with oneAPI.jl destroying queues before that, so call mkl_free_buffers
4237-
// and mkl_sycl_destructor to manually cleanup oneMKL cache when we're destroying queues.
4237+
// to manually wipe the device cache when we're destroying queues.
42384238

42394239
extern "C" int onemklDestroy() {
42404240
mkl_free_buffers();
4241-
mkl_sycl_destructor();
42424241
return 0;
42434242
}

deps/src/onemkl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,6 @@ int onemklXsparse_matmat(syclQueue_t device_queue, matrix_handle_t A, matrix_han
25742574
matrix_handle_t C, onemklMatmatRequest req, matmat_descr_t
25752575
descr, int64_t *sizeTempBuffer, void *tempBuffer);
25762576

2577-
void mkl_sycl_destructor(void);
25782577
int onemklDestroy(void);
25792578
#ifdef __cplusplus
25802579
}

0 commit comments

Comments
 (0)