From 26bfc250e977d967eadd50c3f8570a1b0b8196f1 Mon Sep 17 00:00:00 2001 From: nychiang Date: Fri, 25 Aug 2023 12:00:21 -0700 Subject: [PATCH] fix PNNL CI v1 --- src/LinAlg/hiopLinSolverSparseGinkgo.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/LinAlg/hiopLinSolverSparseGinkgo.cpp b/src/LinAlg/hiopLinSolverSparseGinkgo.cpp index 4af6348f2..09cb14498 100644 --- a/src/LinAlg/hiopLinSolverSparseGinkgo.cpp +++ b/src/LinAlg/hiopLinSolverSparseGinkgo.cpp @@ -175,7 +175,7 @@ std::shared_ptr> transferTripletToCSR(std::shared_ auto val_array = gko::Array::view(exec, nnz_, kVal_); auto row_ptrs = gko::Array::view(exec, n_ + 1, kRowPtr_); auto col_idxs = gko::Array::view(exec, nnz_, jCol_); - auto mtx = gko::share(gko::matrix::Csr::create(exec, gko::dim<2>{n_, n_}, val_array, col_idxs, row_ptrs)); + auto mtx = gko::share(gko::matrix::Csr::create(exec, gko::dim<2>{(long unsigned int)n_, (long unsigned int)n_}, val_array, col_idxs, row_ptrs)); return mtx; } @@ -189,7 +189,6 @@ void update_matrix(hiopMatrixSparse* M_, int n_ = mtx->get_size()[0]; int nnz_= mtx->get_num_stored_elements(); auto values = host_mtx->get_values(); - int rowID_tmp{0}; for(int k=0; kM()[index_covert_CSR2Triplet_[k]]; } @@ -280,10 +279,10 @@ std::shared_ptr setup_solver_factory(std::shared_ptr setup_solver_factory(std::shared_ptr(x->new_copy()); double* dx = x->local_data(); double* drhs = rhs->local_data(); - const auto size = gko::dim<2>{n_, 1}; + const auto size = gko::dim<2>{(long unsigned int)n_, 1}; auto dense_x_host = vec::create(host, size, arr::view(host, n_, dx), 1); auto dense_x = vec::create(exec_, size); dense_x->copy_from(dense_x_host.get());