From ef4004bd1103d2f3f0544d45ca9a5ff7ec4ebba9 Mon Sep 17 00:00:00 2001 From: JackAKirk Date: Fri, 12 Jul 2024 07:45:12 -0400 Subject: [PATCH] Fix dft/sparse tests also. Signed-off-by: JackAKirk --- tests/unit_tests/dft/include/compute_inplace.hpp | 2 +- .../unit_tests/dft/include/compute_inplace_real_real.hpp | 8 ++++---- tests/unit_tests/dft/include/compute_out_of_place.hpp | 2 +- .../dft/include/compute_out_of_place_real_real.hpp | 8 ++++---- .../unit_tests/sparse_blas/source/sparse_gemm_buffer.cpp | 2 +- .../unit_tests/sparse_blas/source/sparse_gemv_buffer.cpp | 2 +- .../unit_tests/sparse_blas/source/sparse_trsv_buffer.cpp | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/unit_tests/dft/include/compute_inplace.hpp b/tests/unit_tests/dft/include/compute_inplace.hpp index ef4669e34..145106b7a 100644 --- a/tests/unit_tests/dft/include/compute_inplace.hpp +++ b/tests/unit_tests/dft/include/compute_inplace.hpp @@ -91,7 +91,7 @@ int DFT_Test::test_in_place_buffer() { oneapi::mkl::dft::compute_forward(descriptor, inout_buf); { - auto acc_host = inout_buf.template get_host_access(); + auto acc_host = inout_buf.get_host_access(); auto ptr_host = reinterpret_cast(acc_host.get_pointer()); for (std::int64_t i = 0; i < batches; i++) { EXPECT_TRUE(check_equal_strided( diff --git a/tests/unit_tests/dft/include/compute_inplace_real_real.hpp b/tests/unit_tests/dft/include/compute_inplace_real_real.hpp index dbc2100bf..d4af1a44a 100644 --- a/tests/unit_tests/dft/include/compute_inplace_real_real.hpp +++ b/tests/unit_tests/dft/include/compute_inplace_real_real.hpp @@ -121,8 +121,8 @@ int DFT_Test::test_in_place_real_real_buffer() { inout_im_buf); { - auto acc_inout_re = inout_re_buf.template get_host_access(); - auto acc_inout_im = inout_im_buf.template get_host_access(); + auto acc_inout_re = inout_re_buf.get_host_access(); + auto acc_inout_im = inout_im_buf.get_host_access(); std::vector output_data(size_total, static_cast(0)); for (std::size_t i = 0; i < output_data.size(); ++i) { output_data[i] = { acc_inout_re[i], acc_inout_im[i] }; @@ -136,8 +136,8 @@ int DFT_Test::test_in_place_real_real_buffer() { PrecisionType>(descriptor, inout_re_buf, inout_im_buf); { - auto acc_inout_re = inout_re_buf.template get_host_access(); - auto acc_inout_im = inout_im_buf.template get_host_access(); + auto acc_inout_re = inout_re_buf.get_host_access(); + auto acc_inout_im = inout_im_buf.get_host_access(); std::vector output_data(size_total, static_cast(0)); for (std::size_t i = 0; i < output_data.size(); ++i) { output_data[i] = { acc_inout_re[i], acc_inout_im[i] }; diff --git a/tests/unit_tests/dft/include/compute_out_of_place.hpp b/tests/unit_tests/dft/include/compute_out_of_place.hpp index 4ab42874f..069c2ce9e 100644 --- a/tests/unit_tests/dft/include/compute_out_of_place.hpp +++ b/tests/unit_tests/dft/include/compute_out_of_place.hpp @@ -70,7 +70,7 @@ int DFT_Test::test_out_of_place_buffer() { descriptor, fwd_buf, bwd_buf); { - auto acc_bwd = bwd_buf.template get_host_access(); + auto acc_bwd = bwd_buf.get_host_access(); auto bwd_ptr = acc_bwd.get_pointer(); for (std::int64_t i = 0; i < batches; i++) { EXPECT_TRUE(check_equal_strided( diff --git a/tests/unit_tests/dft/include/compute_out_of_place_real_real.hpp b/tests/unit_tests/dft/include/compute_out_of_place_real_real.hpp index a7b59edf6..fb3ecb4f2 100644 --- a/tests/unit_tests/dft/include/compute_out_of_place_real_real.hpp +++ b/tests/unit_tests/dft/include/compute_out_of_place_real_real.hpp @@ -127,8 +127,8 @@ int DFT_Test::test_out_of_place_real_real_buffer() { descriptor, in_dev_re, in_dev_im, out_dev_re, out_dev_im); { - auto acc_out_re = out_dev_re.template get_host_access(); - auto acc_out_im = out_dev_im.template get_host_access(); + auto acc_out_re = out_dev_re.get_host_access(); + auto acc_out_im = out_dev_im.get_host_access(); std::vector output_data(size_total, static_cast(0)); for (std::size_t i = 0; i < output_data.size(); ++i) { output_data[i] = { acc_out_re[i], acc_out_im[i] }; @@ -143,8 +143,8 @@ int DFT_Test::test_out_of_place_real_real_buffer() { descriptor, out_dev_re, out_dev_im, out_back_dev_re, out_back_dev_im); { - auto acc_back_out_re = out_back_dev_re.template get_host_access(); - auto acc_back_out_im = out_back_dev_im.template get_host_access(); + auto acc_back_out_re = out_back_dev_re.get_host_access(); + auto acc_back_out_im = out_back_dev_im.get_host_access(); std::vector output_data(size_total, static_cast(0)); for (std::size_t i = 0; i < output_data.size(); ++i) { output_data[i] = { acc_back_out_re[i], acc_back_out_im[i] }; diff --git a/tests/unit_tests/sparse_blas/source/sparse_gemm_buffer.cpp b/tests/unit_tests/sparse_blas/source/sparse_gemm_buffer.cpp index cc6fae6db..1c9549fcc 100644 --- a/tests/unit_tests/sparse_blas/source/sparse_gemm_buffer.cpp +++ b/tests/unit_tests/sparse_blas/source/sparse_gemm_buffer.cpp @@ -120,7 +120,7 @@ int test(sycl::device *dev, intType nrows_A, intType ncols_A, intType ncols_C, c_ref_host.data()); // Compare the results of reference implementation and DPC++ implementation. - auto c_acc = c_buf.template get_host_access(sycl::read_only); + auto c_acc = c_buf.get_host_access(sycl::read_only); bool valid = check_equal_vector(c_acc, c_ref_host); ev_release.wait_and_throw(); diff --git a/tests/unit_tests/sparse_blas/source/sparse_gemv_buffer.cpp b/tests/unit_tests/sparse_blas/source/sparse_gemv_buffer.cpp index b6506ed5f..b95636831 100644 --- a/tests/unit_tests/sparse_blas/source/sparse_gemv_buffer.cpp +++ b/tests/unit_tests/sparse_blas/source/sparse_gemv_buffer.cpp @@ -111,7 +111,7 @@ int test(sycl::device *dev, intType nrows, intType ncols, double density_A_matri y_ref_host.data()); // Compare the results of reference implementation and DPC++ implementation. - auto y_acc = y_buf.template get_host_access(sycl::read_only); + auto y_acc = y_buf.get_host_access(sycl::read_only); bool valid = check_equal_vector(y_acc, y_ref_host); ev_release.wait_and_throw(); diff --git a/tests/unit_tests/sparse_blas/source/sparse_trsv_buffer.cpp b/tests/unit_tests/sparse_blas/source/sparse_trsv_buffer.cpp index 00ec6e5ed..4e82ae1f0 100644 --- a/tests/unit_tests/sparse_blas/source/sparse_trsv_buffer.cpp +++ b/tests/unit_tests/sparse_blas/source/sparse_trsv_buffer.cpp @@ -119,7 +119,7 @@ int test(sycl::device *dev, intType m, double density_A_matrix, oneapi::mkl::ind y_ref_host.data()); // Compare the results of reference implementation and DPC++ implementation. - auto y_acc = y_buf.template get_host_access(sycl::read_only); + auto y_acc = y_buf.get_host_access(sycl::read_only); bool valid = check_equal_vector(y_acc, y_ref_host); ev_release.wait_and_throw();