Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(DO NOT MERGE): Tpetra: CrsMatrix:: and CrsGraph:: copyAndPermute performance improvements #13682

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

skennon10
Copy link
Contributor

@trilinos/

Motivation

Clients have reported copyAndPermute as a large portion of the time spent in e.g. evaluating and scattering the Jacobian in the panzer application. This PR addresses that by profiling and rewriting code, and using kokkos parallel for/reduce.

Status

Serial speedups have been obtained by writing a batch/array version of getGlobalElement (which amortizes the 'if(contiguous)' and other if-stmts), rewriting replaceGlobalValuesImpl and getGlobalRowCopy.

This bottom-up approach led to a top-down investigation, leading to using Kokkos to parallelize the copyAndPermute main loop over rows of the source matrix.

Related Issues

#13587

  • Closes 13587

Stakeholder Feedback

Testing

@skennon10 skennon10 requested review from a team as code owners December 17, 2024 21:16
@github-actions github-actions bot added the AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) label Dec 17, 2024
Copy link

You seem to have created a PR on master. This is not allowed behavior, so we've blocked your PR. Please switch your PR to target the develop branch and remove the AT: WIP label.

@skennon10 skennon10 changed the base branch from master to develop December 17, 2024 21:18
@skennon10 skennon10 removed the AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) label Dec 17, 2024
@skennon10 skennon10 self-assigned this Dec 17, 2024
@skennon10 skennon10 added the AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) pkg: Tpetra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant