Skip to content

Commit 58fc2c6

Browse files
authored
[cuBLAS] Fix deprecated API (uxlfoundation#95)
1 parent 1ed12c7 commit 58fc2c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blas/backends/cublas/cublas_scope_handle.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ void ContextCallback(void *userData) {
9797
}
9898

9999
cublasHandle_t CublasScopedContextHandler::get_handle(const cl::sycl::queue &queue) {
100-
auto piPlacedContext_ = reinterpret_cast<pi_context>(placedContext_.get());
100+
auto piPlacedContext_ =
101+
reinterpret_cast<pi_context>(cl::sycl::get_native<cl::sycl::backend::cuda>(placedContext_));
101102
CUstream streamId = get_stream(queue);
102103
cublasStatus_t err;
103104
auto it = handle_helper.cublas_handle_mapper_.find(piPlacedContext_);

0 commit comments

Comments
 (0)