Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aacostadiaz committed Aug 7, 2023
1 parent b2df2d7 commit d40933d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions src/interface/blas1_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ typename sb_handle_t::event_t _copy(
sb_handle_t &sb_handle, index_t _N, container_0_t _vx, increment_t _incx,
container_1_t _vy, increment_t _incy,
const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_0_t>::type;
typename VectorViewType<container_0_t, index_t, increment_t>::type vx =
make_vector_view(_vx, _incx, _N);
auto vy = make_vector_view(_vy, _incy, _N);
Expand Down Expand Up @@ -191,7 +190,6 @@ template <typename sb_handle_t, typename container_0_t, typename container_1_t,
typename sb_handle_t::event_t _asum(
sb_handle_t &sb_handle, index_t _N, container_0_t _vx, increment_t _incx,
container_1_t _rs, const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_0_t>::type;
typename VectorViewType<container_0_t, index_t, increment_t>::type vx =
make_vector_view(_vx, _incx, _N);
auto rs = make_vector_view(_rs, static_cast<increment_t>(1),
Expand All @@ -217,7 +215,6 @@ template <typename sb_handle_t, typename container_t, typename ContainerI,
typename sb_handle_t::event_t _iamax(
sb_handle_t &sb_handle, index_t _N, container_t _vx, increment_t _incx,
ContainerI _rs, const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_t>::type;
typename VectorViewType<container_t, index_t, increment_t>::type vx =
make_vector_view(_vx, _incx, _N);
auto rs = make_vector_view(_rs, static_cast<increment_t>(1),
Expand All @@ -243,7 +240,6 @@ template <typename sb_handle_t, typename container_t, typename ContainerI,
typename sb_handle_t::event_t _iamin(
sb_handle_t &sb_handle, index_t _N, container_t _vx, increment_t _incx,
ContainerI _rs, const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_t>::type;
typename VectorViewType<container_t, index_t, increment_t>::type vx =
make_vector_view(_vx, _incx, _N);
auto rs = make_vector_view(_rs, static_cast<increment_t>(1),
Expand Down Expand Up @@ -321,7 +317,6 @@ template <typename sb_handle_t, typename container_0_t, typename container_1_t,
typename sb_handle_t::event_t _nrm2(
sb_handle_t &sb_handle, index_t _N, container_0_t _vx, increment_t _incx,
container_1_t _rs, const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_0_t>::type;
typename VectorViewType<container_0_t, index_t, increment_t>::type vx =
make_vector_view(_vx, _incx, _N);
auto rs = make_vector_view(_rs, static_cast<increment_t>(1),
Expand Down Expand Up @@ -411,11 +406,11 @@ typename sb_handle_t::event_t _rotm(
sb_handle_t &sb_handle, index_t _N, container_0_t _vx, increment_t _incx,
container_1_t _vy, increment_t _incy, container_2_t _param,
const typename sb_handle_t::event_t &_dependencies) {
using element_t = typename ValueType<container_0_t>::type;
auto vx = make_vector_view(_vx, _incx, _N);
auto vy = make_vector_view(_vy, _incy, _N);

constexpr size_t param_size = 5;
using element_t = typename ValueType<container_0_t>::type;
std::array<element_t, param_size> param_host;

/* This implementation can be further optimized for small input vectors by
Expand Down
2 changes: 0 additions & 2 deletions src/interface/blas2_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ typename sb_handle_t::event_t _trmv_impl(
(data_layout_t::is_col_major()) ? (_Uplo == 'u') : (_Uplo == 'l');
int unitDiag = (_Diag == 'u');
index_t N = _N;
using element_t = typename ValueType<container_t0>::type;
typename MatrixViewType<container_t0, index_t, data_layout_t>::type mA =
make_matrix_view<data_layout_t>(_mA, N, N, _lda);
auto vx = make_vector_view(_vx, _incx, N);
Expand Down Expand Up @@ -744,7 +743,6 @@ typename sb_handle_t::event_t _tbsv_impl(
constexpr bool is_forward =
(is_upper && is_transposed) || (!is_upper && !is_transposed);

using element_t = typename ValueType<container_t0>::type;
typename MatrixViewType<container_t0, index_t, col_major>::type mA =
make_matrix_view<col_major>(_mA, _K + 1, _N, _lda);
auto vx = make_vector_view(_vx, _incx, _N);
Expand Down

0 comments on commit d40933d

Please sign in to comment.