Skip to content

Commit

Permalink
Tacho : unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: iyamazaki <[email protected]>
  • Loading branch information
iyamazaki committed Jan 30, 2025
1 parent e571022 commit 0155834
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1630,10 +1630,6 @@ class NumericToolsLevelSet : public NumericToolsBase<ValueType, DeviceType> {
}

inline void extractCRS(bool lu) {
const ordinal_type nrhs = 1;
const ordinal_type m = _m;
const value_type one(1);
const value_type zero(0);

// ========================
// free CRS,
Expand All @@ -1644,11 +1640,17 @@ class NumericToolsLevelSet : public NumericToolsBase<ValueType, DeviceType> {
this->releaseCRS(true);
#endif

#if (defined(KOKKOS_ENABLE_CUDA) && defined(TACHO_HAVE_CUSPARSE)) || \
defined(KOKKOS_ENABLE_HIP)
// ========================
// workspace
const ordinal_type m = _m;
const ordinal_type nrhs = 1;
Kokkos::resize(_w_vec, m, nrhs);

#if (defined(KOKKOS_ENABLE_CUDA) && defined(TACHO_HAVE_CUSPARSE)) || \
defined(KOKKOS_ENABLE_HIP)
const value_type one(1);
const value_type zero(0);

int ldw = _w_vec.stride(1);
#if defined(KOKKOS_ENABLE_CUDA)
cudaDataType computeType;
Expand Down Expand Up @@ -1747,7 +1749,6 @@ class NumericToolsLevelSet : public NumericToolsBase<ValueType, DeviceType> {

// ========================
// shift to generate rowptr
using range_type = Kokkos::pair<int, int>;
{
using range_policy_type = Kokkos::RangePolicy<exec_space>;
Kokkos::parallel_scan("shiftRowptr", range_policy_type(0, m+1), rowptr_sum(s0.rowptrU));
Expand Down Expand Up @@ -2411,7 +2412,6 @@ class NumericToolsLevelSet : public NumericToolsBase<ValueType, DeviceType> {
const value_type_matrix &t) {
const ordinal_type m = t.extent(0);
const ordinal_type nrhs = t.extent(1);
const ordinal_type ldt = t.stride(1);
const ordinal_type old_nrhs = _w_vec.extent(1);

auto &s0 = _h_supernodes(_h_level_sids(pbeg));
Expand All @@ -2421,6 +2421,8 @@ class NumericToolsLevelSet : public NumericToolsBase<ValueType, DeviceType> {
}
#if (defined(KOKKOS_ENABLE_CUDA) && defined(TACHO_HAVE_CUSPARSE)) || \
defined(KOKKOS_ENABLE_HIP)
const ordinal_type ldt = t.stride(1);

#if defined(KOKKOS_ENABLE_CUDA)
cudaDataType computeType = CUDA_R_64F;
if (std::is_same<value_type, float>::value) {
Expand Down

0 comments on commit 0155834

Please sign in to comment.