Skip to content

Commit 61590ee

Browse files
authored
Merge pull request #24 from oneapi-src/HPLinpack_interop_update
[HPLinpack][SYCL] Updated interop calls.
2 parents bdc8a47 + 31a9f44 commit 61590ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hplinpack/dpcpp/hpl-2.3/src/dpcpp/dpcpp_dgemm.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,15 @@ if ((M==0)||(K==0)||(N==0))
316316
mQueue.submit([&](sycl::handler &h){
317317

318318
h.host_task([=](sycl::interop_handle ih) {
319-
cuCtxSetCurrent(ih.get_native_context<sycl::backend::cuda>());
320-
cublasSetStream(handle, ih.get_native_queue<sycl::backend::cuda>());
319+
cuCtxSetCurrent(ih.get_native_context<sycl::backend::ext_oneapi_cuda>());
320+
cublasSetStream(handle, ih.get_native_queue<sycl::backend::ext_oneapi_cuda>());
321321

322322
CHECK_ERROR(cublasDgemm(handle, CUBLAS_OP_N, CUBLAS_OP_N, M, N, K, &ALPHA, A_buffer, LDA, B_buffer, LDB, &BETA, C_buffer, LDC));
323323
cudaDeviceSynchronize ();
324324
});
325325
}).wait_and_throw();
326326
#elif USE_HIPBLAS
327-
hipblasHandle_t handle;
327+
hipblasHandle_t handle;
328328
hipblasCreate(&handle);
329329

330330

@@ -425,13 +425,13 @@ void dpcpp_dtrsm
425425
mQueue.submit([&](sycl::handler &h){
426426

427427
h.host_task([=](sycl::interop_handle ih) {
428-
cuCtxSetCurrent(ih.get_native_context<sycl::backend::cuda>());
429-
cublasSetStream(handle, ih.get_native_queue<sycl::backend::cuda>());
428+
cuCtxSetCurrent(ih.get_native_context<sycl::backend::ext_oneapi_cuda>());
429+
cublasSetStream(handle, ih.get_native_queue<sycl::backend::ext_oneapi_cuda>());
430430

431431
CHECK_ERROR(cublasDtrsm(handle,CUBLAS_SIDE_LEFT,CUBLAS_FILL_MODE_LOWER,CUBLAS_OP_N,CUBLAS_DIAG_UNIT,M,N,&ALPHA,A_buffer,LDA,B_buffer,LDB));
432432
cudaDeviceSynchronize();
433433
});
434-
}).wait_and_throw();
434+
}).wait_and_throw();
435435
#elif USE_HIPBLAS
436436
hipblasHandle_t handle;
437437
hipblasCreate(&handle);

0 commit comments

Comments
 (0)