Skip to content

Commit ab50e3c

Browse files
committed
Update where the context gets made.
1 parent fbfc293 commit ab50e3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

svm/SYCL/cuSVM/cuSVMSolver.dp.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,13 @@ float *d_SelfDotProd,const int& m,const int& n,const int &nbrCtas,const int& thr
497497
constexpr float ALPHA = 1.0f;
498498
constexpr float BETA = 0.0f;
499499
CHECK_ERROR(cublasSgemv (handle, CUBLAS_OP_N, m, n, &ALPHA, d_x, m, d_Kernel_InterRow, 1, &BETA, d_KernelDotProd, 1));
500-
cublasDestroy(handle);
501-
//cudaStreamSynchronize(cuStream);
500+
cudaStreamSynchronize(cuStream);
502501
//cudaDeviceSynchronize();
503502
});
504503
}).wait_and_throw();
504+
505+
cublasDestroy(handle);
506+
505507
#elif USE_HIPBLAS
506508

507509
constexpr float ALPHA = 1.0f;

0 commit comments

Comments
 (0)