Skip to content

Maksud/resolve updated interface - #1

Open
maksud wants to merge 4 commits into
resolve-main-devfrom
maksud/resolve-updated-interface
Open

Maksud/resolve updated interface#1
maksud wants to merge 4 commits into
resolve-main-devfrom
maksud/resolve-updated-interface

Conversation

@maksud

@maksud maksud commented Jul 31, 2025

Copy link
Copy Markdown
Collaborator

Code refactoring and cleanup. Removed test codes. Tested with ReSolve interface. Tested on HIP and CUDA devices.

@maksud
maksud requested review from pelesh and shakedregev July 31, 2025 16:16
A_->setDataPointers(const_cast<int*>(ia), const_cast<int*>(ja), const_cast<Number*>(A_->getValues(ReSolve::memory::HOST)), ReSolve::memory::HOST);

#if RESOLVE_WITH_GPU
if (method_ == resolve_rf || method_ == resolve_rf_fgmres || method_ == resolve_glu) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to just check if it's not glu, in case we add another refactorization method.

@shakedregev shakedregev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I will test it.

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please replace hard-wired print statements with Ipopt output and remove commented out code.


if (method_ == resolve_rf_fgmres)
{
printf("Resolve::FGMRES Setup\n");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should use Ipopt's output and not hard-wire these print statements.

Comment on lines +305 to 306
printf("First Iteration: %d: Performing KLU Factorization\n", n_iteration_);
// Symbolic Factorization

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace hard-wired print statement with Ipopt output function.

Comment on lines +335 to 336
// std::cout << "%" << n_iteration_ << "%" << "KLU FULL FACTORIZATION" << std::endl;
status = resolve_KLU_->factorize();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented out code from the PR.

@shakedregev

Copy link
Copy Markdown
Collaborator

Please give instructions how to run the tests from scratch.

@pelesh pelesh added the enhancement New feature or request label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants