From cf2f38cd5e84a3c88caa5d0181aa319bf2f29a6b Mon Sep 17 00:00:00 2001 From: Ouadie EL FAROUKI Date: Fri, 28 Jul 2023 14:36:43 +0100 Subject: [PATCH] Genral Formatting --- benchmark/syclblas/extension/omatcopy.cpp | 8 ++++---- include/interface/extension_interface.h | 10 +++++----- src/interface/extension/backend/nvidia_gpu.hpp | 6 ++---- test/unittest/extension/omatcopy2_test.cpp | 4 ++-- test/unittest/extension/omatcopy_test.cpp | 4 ++-- 5 files changed, 15 insertions(+), 17 deletions(-) diff --git a/benchmark/syclblas/extension/omatcopy.cpp b/benchmark/syclblas/extension/omatcopy.cpp index 4ece0cf3a..d10b79f7c 100644 --- a/benchmark/syclblas/extension/omatcopy.cpp +++ b/benchmark/syclblas/extension/omatcopy.cpp @@ -77,8 +77,8 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, int ti, auto m_b_temp_gpu = blas::make_sycl_iterator_buffer(m_b_temp, size_b); - auto event = blas::_omatcopy(sb_handle, *t_str, m, n, alpha, - m_a_gpu, lda, m_b_temp_gpu, ldb); + auto event = blas::_omatcopy(sb_handle, *t_str, m, n, alpha, m_a_gpu, lda, + m_b_temp_gpu, ldb); sb_handle.wait(); } @@ -92,8 +92,8 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, int ti, #endif auto blas_method_def = [&]() -> std::vector { - auto event = blas::_omatcopy(sb_handle, *t_str, m, n, alpha, - m_a_gpu, lda, m_b_gpu, ldb); + auto event = blas::_omatcopy(sb_handle, *t_str, m, n, alpha, m_a_gpu, lda, + m_b_gpu, ldb); sb_handle.wait(event); return event; }; diff --git a/include/interface/extension_interface.h b/include/interface/extension_interface.h index 9ec1296cd..7e2ccf4c2 100644 --- a/include/interface/extension_interface.h +++ b/include/interface/extension_interface.h @@ -179,8 +179,8 @@ template (sb_handle, m, n, A, ld_in, A, - ld_out); + return blas::internal::_transpose(sb_handle, m, n, A, ld_in, + A, ld_out); } /** @@ -207,8 +207,8 @@ template (sb_handle, m, n, A, ld_a, B, - ld_b); + return blas::internal::_transpose(sb_handle, m, n, A, ld_a, + B, ld_b); } template (1 << 18)) { - return blas::internal::_transpose_outplace_impl<32, 512, 128, - true>( + return blas::internal::_transpose_outplace_impl<32, 512, 128, true>( sb_handle, _M, _N, _alpha, in_, _ld_in, _inc_in, out_, _ld_out, _inc_out); } else { - return blas::internal::_transpose_outplace_impl<32, 128, 128, - true>( + return blas::internal::_transpose_outplace_impl<32, 128, 128, true>( sb_handle, _M, _N, _alpha, in_, _ld_in, _inc_in, out_, _ld_out, _inc_out); } diff --git a/test/unittest/extension/omatcopy2_test.cpp b/test/unittest/extension/omatcopy2_test.cpp index 67bef0207..f3ed06f8b 100644 --- a/test/unittest/extension/omatcopy2_test.cpp +++ b/test/unittest/extension/omatcopy2_test.cpp @@ -71,8 +71,8 @@ void run_test(const combination_t combi) { auto matrix_in = blas::make_sycl_iterator_buffer(A, m_a_size); auto matrix_out = blas::make_sycl_iterator_buffer(B, m_b_size); - blas::_omatcopy2(sb_handle, trans, m, n, alpha, matrix_in, ld_in, - inc_in, matrix_out, ld_out, inc_out); + blas::_omatcopy2(sb_handle, trans, m, n, alpha, matrix_in, ld_in, inc_in, + matrix_out, ld_out, inc_out); auto event = blas::helper::copy_to_host( sb_handle.get_queue(), matrix_out, B.data(), m_b_size); diff --git a/test/unittest/extension/omatcopy_test.cpp b/test/unittest/extension/omatcopy_test.cpp index 95a5070fe..0ed4f6559 100644 --- a/test/unittest/extension/omatcopy_test.cpp +++ b/test/unittest/extension/omatcopy_test.cpp @@ -62,8 +62,8 @@ void run_test(const combination_t combi) { auto matrix_in = blas::make_sycl_iterator_buffer(A, size_a); auto matrix_out = blas::make_sycl_iterator_buffer(B, size_b); - blas::_omatcopy(sb_handle, trans, m, n, alpha, matrix_in, ld_in, - matrix_out, ld_out); + blas::_omatcopy(sb_handle, trans, m, n, alpha, matrix_in, ld_in, matrix_out, + ld_out); auto event = blas::helper::copy_to_host( sb_handle.get_queue(), matrix_out, B.data(), size_b);