@@ -96,8 +96,8 @@ void omatcopy(const char* func_name, Func func, sycl::queue& queue, transpose tr
96
96
auto b_acc = b.template get_access <sycl::access::mode::read_write>(cgh);
97
97
const int64_t logical_m = (trans == oneapi::math::transpose::nontrans ? m : n);
98
98
const int64_t logical_n = (trans == oneapi::math::transpose::nontrans ? n : m);
99
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
100
- auto handle = sc.get_handle (queue );
99
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
100
+ auto handle = sc.get_handle ();
101
101
auto a_ = sc.get_mem <cuDataType*>(a_acc);
102
102
auto b_ = sc.get_mem <cuDataType*>(b_acc);
103
103
cublasStatus_t err;
@@ -172,8 +172,8 @@ void omatadd(const char* func_name, Func func, sycl::queue& queue, transpose tra
172
172
auto a_acc = a.template get_access <sycl::access::mode::read>(cgh);
173
173
auto b_acc = b.template get_access <sycl::access::mode::read>(cgh);
174
174
auto c_acc = c.template get_access <sycl::access::mode::read_write>(cgh);
175
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
176
- auto handle = sc.get_handle (queue );
175
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
176
+ auto handle = sc.get_handle ();
177
177
auto a_ = sc.get_mem <cuDataType*>(a_acc);
178
178
auto b_ = sc.get_mem <cuDataType*>(b_acc);
179
179
auto c_ = sc.get_mem <cuDataType*>(c_acc);
@@ -274,8 +274,8 @@ sycl::event omatcopy(const char* func_name, Func func, sycl::queue& queue, trans
274
274
cgh.depends_on (dependencies);
275
275
const int64_t logical_m = (trans == oneapi::math::transpose::nontrans ? m : n);
276
276
const int64_t logical_n = (trans == oneapi::math::transpose::nontrans ? n : m);
277
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
278
- auto handle = sc.get_handle (queue );
277
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
278
+ auto handle = sc.get_handle ();
279
279
auto a_ = reinterpret_cast <const cuDataType*>(a);
280
280
auto b_ = reinterpret_cast <cuDataType*>(b);
281
281
cublasStatus_t err;
@@ -356,8 +356,8 @@ inline sycl::event omatadd(const char* func_name, Func func, sycl::queue& queue,
356
356
overflow_check (m, n, lda, ldb, ldc);
357
357
auto done = queue.submit ([&](sycl::handler& cgh) {
358
358
cgh.depends_on (dependencies);
359
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
360
- auto handle = sc.get_handle (queue );
359
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
360
+ auto handle = sc.get_handle ();
361
361
auto a_ = reinterpret_cast <const cuDataType*>(a);
362
362
auto b_ = reinterpret_cast <const cuDataType*>(b);
363
363
auto c_ = reinterpret_cast <cuDataType*>(c);
@@ -459,8 +459,8 @@ void omatcopy(const char* func_name, Func func, sycl::queue& queue, transpose tr
459
459
auto b_acc = b.template get_access <sycl::access::mode::read_write>(cgh);
460
460
const int64_t logical_m = (trans == oneapi::math::transpose::nontrans ? n : m);
461
461
const int64_t logical_n = (trans == oneapi::math::transpose::nontrans ? m : n);
462
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
463
- auto handle = sc.get_handle (queue );
462
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
463
+ auto handle = sc.get_handle ();
464
464
auto a_ = sc.get_mem <cuDataType*>(a_acc);
465
465
auto b_ = sc.get_mem <cuDataType*>(b_acc);
466
466
cublasStatus_t err;
@@ -535,8 +535,8 @@ void omatadd(const char* func_name, Func func, sycl::queue& queue, transpose tra
535
535
auto a_acc = a.template get_access <sycl::access::mode::read>(cgh);
536
536
auto b_acc = b.template get_access <sycl::access::mode::read>(cgh);
537
537
auto c_acc = c.template get_access <sycl::access::mode::read_write>(cgh);
538
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
539
- auto handle = sc.get_handle (queue );
538
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
539
+ auto handle = sc.get_handle ();
540
540
auto a_ = sc.get_mem <cuDataType*>(a_acc);
541
541
auto b_ = sc.get_mem <cuDataType*>(b_acc);
542
542
auto c_ = sc.get_mem <cuDataType*>(c_acc);
@@ -637,8 +637,8 @@ sycl::event omatcopy(const char* func_name, Func func, sycl::queue& queue, trans
637
637
cgh.depends_on (dependencies);
638
638
const int64_t logical_m = (trans == oneapi::math::transpose::nontrans ? n : m);
639
639
const int64_t logical_n = (trans == oneapi::math::transpose::nontrans ? m : n);
640
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
641
- auto handle = sc.get_handle (queue );
640
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
641
+ auto handle = sc.get_handle ();
642
642
auto a_ = reinterpret_cast <const cuDataType*>(a);
643
643
auto b_ = reinterpret_cast <cuDataType*>(b);
644
644
cublasStatus_t err;
@@ -719,8 +719,8 @@ inline sycl::event omatadd(const char* func_name, Func func, sycl::queue& queue,
719
719
overflow_check (m, n, lda, ldb, ldc);
720
720
auto done = queue.submit ([&](sycl::handler& cgh) {
721
721
cgh.depends_on (dependencies);
722
- onemath_cublas_host_task (cgh, queue, [=](CublasScopedContextHandler& sc) {
723
- auto handle = sc.get_handle (queue );
722
+ onemath_cublas_host_task (cgh, [=](CublasScopedContextHandler& sc) {
723
+ auto handle = sc.get_handle ();
724
724
auto a_ = reinterpret_cast <const cuDataType*>(a);
725
725
auto b_ = reinterpret_cast <const cuDataType*>(b);
726
726
auto c_ = reinterpret_cast <cuDataType*>(c);
0 commit comments