Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Jul 27, 2023
1 parent b758b8e commit efdfa9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/syclblas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ set(sources
)

if(${BLAS_ENABLE_EXTENSIONS})
set(sources extension/reduction.cpp)
list(APPEND extension/reduction.cpp)
endif()

# Add individual benchmarks for each method
Expand Down
4 changes: 2 additions & 2 deletions benchmark/syclblas/extension/omatcopy2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, int ti,
// Run a first time with a verification of the results
std::vector<scalar_t> m_b_ref = m_b;

reference_blas::ext_omatcopy2(*t_str, m, n, alpha, m_a, lda, inc_a, m_b_ref,
ldb, inc_b);
reference_blas::ext_omatcopy2(*t_str, m, n, alpha, m_a.data(), lda, inc_a,
m_b_ref.data(), ldb, inc_b);

std::vector<scalar_t> m_b_temp = m_b;
{
Expand Down
1 change: 1 addition & 0 deletions common/include/common/blas_extension_state_counters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ inline typename std::enable_if<
op == ExtensionOP::imatcopy_batch>::type
init_extension_counters(benchmark::State& state, const char* trans, index_t m,
index_t n, index_t lda_mul, index_t ldb_mul,
index_t inc_a = 1, index_t inc_b = 1,
index_t stride_a_mul = 1, index_t stride_b_mul = 1,
index_t batch_size = 1) {
// Google-benchmark counters are double.
Expand Down

0 comments on commit efdfa9b

Please sign in to comment.