Skip to content

Commit

Permalink
[BLAS][DFT][SPARSE][TESTS] Remove .template from get_host_access to…
Browse files Browse the repository at this point in the history
… fix build (uxlfoundation#534)

Signed-off-by: JackAKirk <[email protected]>
  • Loading branch information
JackAKirk authored Jul 16, 2024
1 parent 8abfdfc commit b4955ca
Show file tree
Hide file tree
Showing 74 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/axpy_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, fp

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = true;
for (i = 0; i < batch_size; i++) {
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/copy_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, in

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = true;
for (i = 0; i < batch_size; i++) {
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/dgmm_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::side left_right,

// Compare the results of reference implementation and DPC++ implementation.

auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good = true;
for (i = 0; i < batch_size; i++) {
good = good &&
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/gemm_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
for (size_t i = 0; i < C_ref.size(); ++i) {
C_cast_ref[i] = C_ref[i];
}
auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good = check_almost_equal_matrix(C_accessor, C_cast_ref, oneapi::mkl::layout::col_major,
stride_c * batch_size, 1, stride_c * batch_size,
error_mag, std::cout);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/gemv_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, in

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = true;
for (i = 0; i < batch_size; i++) {
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/imatcopy_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {

// Compare the results of reference implementation and DPC++ implementation.

auto AB_accessor = AB_buffer.template get_host_access(read_only);
auto AB_accessor = AB_buffer.get_host_access(read_only);
bool good = check_equal_matrix(AB_accessor, AB_ref, oneapi::mkl::layout::col_major,
stride * batch_size, 1, stride * batch_size, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/omatadd_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {

// Compare the results of reference implementation and DPC++ implementation.

auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good = check_equal_matrix(C_accessor, C_ref, oneapi::mkl::layout::col_major,
stride_c * batch_size, 1, stride_c * batch_size, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/omatcopy_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {

// Compare the results of reference implementation and DPC++ implementation.

auto B_accessor = B_buffer.template get_host_access(read_only);
auto B_accessor = B_buffer.get_host_access(read_only);
bool good = check_equal_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major,
stride_b * batch_size, 1, stride_b * batch_size, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/syrk_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {

// Compare the results of reference implementation and DPC++ implementation.

auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good =
check_equal_matrix(C_accessor, C_ref, oneapi::mkl::layout::col_major, stride_c * batch_size,
1, stride_c * batch_size, 10 * k, std::cout);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/batch/trsm_batch_stride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int test(device *dev, oneapi::mkl::layout layout) {
}

// Compare the results of reference implementation and DPC++ implementation.
auto B_accessor = B_buffer.template get_host_access(read_only);
auto B_accessor = B_buffer.get_host_access(read_only);
bool good =
check_equal_trsm_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major, total_size_b, 1,
total_size_b, 10 * std::max(m, n), std::cout);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/gemm_bias.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ int test(device* dev, oneapi::mkl::layout layout, oneapi::mkl::transpose transa,
}

// Compare the results of reference implementation and DPC++ implementation.
auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good = check_equal_matrix(C_accessor, C_ref, layout, m, n, ldc, 10 * k, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/gemmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int test(device* dev, oneapi::mkl::layout layout, oneapi::mkl::uplo upper_lower,
}

// Compare the results of reference implementation and DPC++ implementation.
auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good =
check_equal_matrix(C_accessor, C_ref, layout, upper_lower, n, n, ldc, 10 * k, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/imatcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ int test(device *dev, oneapi::mkl::layout layout) {

// Compare the results of reference implementation and DPC++ implementation.

auto AB_accessor = AB_buffer.template get_host_access(read_only);
auto AB_accessor = AB_buffer.get_host_access(read_only);
bool good = check_equal_matrix(AB_accessor, AB_ref, oneapi::mkl::layout::col_major, size, 1,
size, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/omatadd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int test(device *dev, oneapi::mkl::layout layout) {

// Compare the results of reference implementation and DPC++ implementation.

auto C_accessor = C_buffer.template get_host_access(read_only);
auto C_accessor = C_buffer.get_host_access(read_only);
bool good = check_equal_matrix(C_accessor, C_ref, oneapi::mkl::layout::col_major, size_c, 1,
size_c, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/omatcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int test(device *dev, oneapi::mkl::layout layout) {

// Compare the results of reference implementation and DPC++ implementation.

auto B_accessor = B_buffer.template get_host_access(read_only);
auto B_accessor = B_buffer.get_host_access(read_only);
bool good = check_equal_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major, size_b, 1,
size_b, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/extensions/omatcopy2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int test(device *dev, oneapi::mkl::layout layout) {

// Compare the results of reference implementation and DPC++ implementation.

auto B_accessor = B_buffer.template get_host_access(read_only);
auto B_accessor = B_buffer.get_host_access(read_only);
bool good = check_equal_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major, size_b, 1,
size_b, 10, std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/asum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ int test(device* dev, oneapi::mkl::layout layout, int64_t N, int64_t incx) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/axpby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy, fp

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/axpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy, fp

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx, int incy) {

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx, int incy) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/dotc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_reference, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/dotu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_reference, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/iamax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, 0, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/iamin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, 0, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/nrm2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx) {

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, N, std::cout);

return (int)good;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/blas/level1/rot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy, fp_

// Compare the results of reference implementation and DPC++ implementation.

auto x_accessor = x_buffer.template get_host_access(read_only);
auto x_accessor = x_buffer.get_host_access(read_only);
bool good_x = check_equal_vector(x_accessor, x_ref, N, incx, N, std::cout);
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good_y = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);

bool good = good_x && good_y;
Expand Down
8 changes: 4 additions & 4 deletions tests/unit_tests/blas/level1/rotg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ int test(device *dev, oneapi::mkl::layout layout) {
}

// Compare the results of reference implementation and DPC++ implementation.
auto a_accessor = a_buffer.template get_host_access(read_only);
auto a_accessor = a_buffer.get_host_access(read_only);
bool good_a = check_equal(a_accessor[0], a_ref, 4, std::cout);
auto b_accessor = b_buffer.template get_host_access(read_only);
auto b_accessor = b_buffer.get_host_access(read_only);
bool good_b = check_equal(b_accessor[0], b_ref, 4, std::cout);
auto s_accessor = s_buffer.template get_host_access(read_only);
auto s_accessor = s_buffer.get_host_access(read_only);
bool good_s = check_equal(s_accessor[0], s_ref, 4, std::cout);
auto c_accessor = c_buffer.template get_host_access(read_only);
auto c_accessor = c_buffer.get_host_access(read_only);
bool good_c = check_equal(c_accessor[0], c_ref, 4, std::cout);

bool good = good_a && good_b && good_c && good_s;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/blas/level1/rotm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy, fp
}

// Compare the results of reference implementation and DPC++ implementation.
auto x_accessor = x_buffer.template get_host_access(read_only);
auto x_accessor = x_buffer.get_host_access(read_only);
bool good_x = check_equal_vector(x_accessor, x_ref, N, incx, N, std::cout);
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good_y = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);
bool good = good_x && good_y;

Expand Down
8 changes: 4 additions & 4 deletions tests/unit_tests/blas/level1/rotmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ int test(device* dev, oneapi::mkl::layout layout) {

int error_mag = 50;

auto d1_accessor = d1_buffer.template get_host_access(read_only);
auto d1_accessor = d1_buffer.get_host_access(read_only);
bool good_d1 = check_equal(d1_accessor[0], d1_ref, error_mag, std::cout);
auto d2_accessor = d2_buffer.template get_host_access(read_only);
auto d2_accessor = d2_buffer.get_host_access(read_only);
bool good_d2 = check_equal(d2_accessor[0], d2_ref, error_mag, std::cout);
auto x1_accessor = x1_buffer.template get_host_access(read_only);
auto x1_accessor = x1_buffer.get_host_access(read_only);
bool good_x1 = check_equal(x1_accessor[0], x1_ref, error_mag, std::cout);
auto param_accessor = param_buffer.template get_host_access(read_only);
auto param_accessor = param_buffer.get_host_access(read_only);

constexpr fp unit_matrix = -2;
constexpr fp rescaled_matrix = -1;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/scal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx, fp_scalar alp
}

// Compare the results of reference implementation and DPC++ implementation.
auto x_accessor = x_buffer.template get_host_access(read_only);
auto x_accessor = x_buffer.get_host_access(read_only);
bool good = check_equal_vector(x_accessor, x_ref, N, incx, N, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level1/sdsdot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ int test(device *dev, oneapi::mkl::layout layout, int N, int incx, int incy, flo

// Compare the results of reference implementation and DPC++ implementation.

auto result_accessor = result_buffer.template get_host_access(read_only);
auto result_accessor = result_buffer.get_host_access(read_only);
bool good = check_equal(result_accessor[0], result_ref, N, std::cout);

return (int)good;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/blas/level1/swap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ int test(device* dev, oneapi::mkl::layout layout, int N, int incx, int incy) {

// Compare the results of reference implementation and DPC++ implementation.

auto y_accessor = y_buffer.template get_host_access(read_only);
auto x_accessor = x_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
auto x_accessor = x_buffer.get_host_access(read_only);
bool good_y = check_equal_vector(y_accessor, y_ref, N, incy, N, std::cout);
bool good_x = check_equal_vector(x_accessor, x_ref, N, incx, N, std::cout);
bool good = good_x && good_y;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/gbmv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::transpose transa,
}

// Compare the results of reference implementation and DPC++ implementation.
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, y_len, incy, std::max<int>(m, n), std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/gemv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::transpose transa,
}

// Compare the results of reference implementation and DPC++ implementation.
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, y_len, incy, std::max<int>(m, n), std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/ger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int test(device *dev, oneapi::mkl::layout layout, int m, int n, fp alpha, int in
}

// Compare the results of reference implementation and DPC++ implementation.
auto A_accessor = A_buffer.template get_host_access(read_only);
auto A_accessor = A_buffer.get_host_access(read_only);
bool good =
check_equal_matrix(A_accessor, A_ref, layout, m, n, lda, std::max<int>(m, n), std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/gerc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int test(device *dev, oneapi::mkl::layout layout, int m, int n, fp alpha, int in
}

// Compare the results of reference implementation and DPC++ implementation.
auto A_accessor = A_buffer.template get_host_access(read_only);
auto A_accessor = A_buffer.get_host_access(read_only);
bool good =
check_equal_matrix(A_accessor, A_ref, layout, m, n, lda, std::max<int>(m, n), std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/geru.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int test(device *dev, oneapi::mkl::layout layout, int m, int n, fp alpha, int in
}

// Compare the results of reference implementation and DPC++ implementation.
auto A_accessor = A_buffer.template get_host_access(read_only);
auto A_accessor = A_buffer.get_host_access(read_only);
bool good =
check_equal_matrix(A_accessor, A_ref, layout, m, n, lda, std::max<int>(m, n), std::cout);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/hbmv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::uplo upper_lower,
}

// Compare the results of reference implementation and DPC++ implementation.
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, n, incy, n, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/hemv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::uplo upper_lower,
}

// Compare the results of reference implementation and DPC++ implementation.
auto y_accessor = y_buffer.template get_host_access(read_only);
auto y_accessor = y_buffer.get_host_access(read_only);
bool good = check_equal_vector(y_accessor, y_ref, n, incy, n, std::cout);

return (int)good;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/blas/level2/her.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::uplo upper_lower,
}

// Compare the results of reference implementation and DPC++ implementation.
auto A_accessor = A_buffer.template get_host_access(read_only);
auto A_accessor = A_buffer.get_host_access(read_only);
bool good = check_equal_matrix(A_accessor, A_ref, layout, n, n, lda, n, std::cout);

return (int)good;
Expand Down
Loading

0 comments on commit b4955ca

Please sign in to comment.