Skip to content

Commit

Permalink
SpMV: fix issue with un-used typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Berger-Vergiat <lberge@sandia.gov>
  • Loading branch information
lucbv committed May 17, 2022
1 parent cb7baad commit 77e6431
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions unit_test/sparse/Test_Sparse_spmv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ void check_spmv_mv_struct(
typename y_vector_type::non_const_value_type beta, int numMV,
typename Kokkos::ArithTraits<typename crsMat_t::value_type>::mag_type
max_val) {

using ExecSpace = typename crsMat_t::execution_space;
using my_exec_space = Kokkos::RangePolicy<ExecSpace>;
using y_value_type = typename y_vector_type::non_const_value_type;
Expand Down Expand Up @@ -641,9 +640,6 @@ void test_spmv_struct_1D(lno_t nx, lno_t leftBC, lno_t rightBC) {
Kokkos::Random_XorShift64_Pool<typename Device::execution_space> rand_pool(
13718);

using ScalarX = typename x_vector_type::value_type;
using ScalarY = typename y_vector_type::value_type;

Kokkos::fill_random(input_x, rand_pool, max_x);
Kokkos::fill_random(output_y, rand_pool, max_y);

Expand Down Expand Up @@ -704,11 +700,8 @@ void test_spmv_struct_2D(lno_t nx, lno_t ny, lno_t horizontalBC,
Kokkos::Random_XorShift64_Pool<typename Device::execution_space> rand_pool(
13718);

using ScalarX = typename x_vector_type::value_type;
using ScalarY = typename y_vector_type::value_type;

Kokkos::fill_random(input_x, rand_pool, ScalarX(max_x));
Kokkos::fill_random(output_y, rand_pool, ScalarY(max_y));
Kokkos::fill_random(input_x, rand_pool, max_x);
Kokkos::fill_random(output_y, rand_pool, max_y);

{
constexpr mag_t max_val = static_cast<mag_t>(4);
Expand Down Expand Up @@ -788,9 +781,6 @@ void test_spmv_struct_3D(lno_t nx, lno_t ny, lno_t nz, lno_t horizontal1BC,
Kokkos::Random_XorShift64_Pool<typename Device::execution_space> rand_pool(
13718);

using ScalarX = typename x_vector_type::value_type;
using ScalarY = typename y_vector_type::value_type;

Kokkos::fill_random(input_x, rand_pool, max_x);
Kokkos::fill_random(output_y, rand_pool, max_y);

Expand Down Expand Up @@ -850,9 +840,6 @@ void test_spmv_mv_struct_1D(lno_t nx, int numMV) {
Kokkos::Random_XorShift64_Pool<typename Device::execution_space> rand_pool(
13718);

using ScalarX = typename x_multivector_type::value_type;
using ScalarY = typename y_multivector_type::value_type;

Kokkos::fill_random(input_x, rand_pool, max_x);
Kokkos::fill_random(output_y, rand_pool, max_y);

Expand Down Expand Up @@ -897,9 +884,6 @@ void test_spmv_controls(lno_t numRows, size_type nnz, lno_t bandwidth,
Kokkos::Random_XorShift64_Pool<typename Device::execution_space> rand_pool(
13718);

using ScalarX = typename x_vector_type::value_type;
using ScalarY = typename y_vector_type::value_type;

Kokkos::fill_random(input_x, rand_pool, max_x);
Kokkos::fill_random(output_y, rand_pool, max_y);
Kokkos::fill_random(input_mat.values, rand_pool, max_val);
Expand Down

0 comments on commit 77e6431

Please sign in to comment.