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

Testing (do not merge): Turn on operator partial assembly by default #169

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ The format of this changelog is based on

## In progress

- Changed default value of `config["Solver"]["PartialAssemblyOrder"]` in order to active
operator partial assembly by default for all operators in all simulation types.

## [0.12.0] - 2023-12-21

- Added support for operator partial assembly for high-order finite element spaces based
Expand Down
6 changes: 4 additions & 2 deletions docs/src/config/solver.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ with

`"Order" [1]` : Finite element order (degree). Arbitrary high-order spaces are supported.

`"PartialAssemblyOrder" [100]` : Order at which to switch from full assembly of finite
`"PartialAssemblyOrder" [1]` : Order at which to switch from full assembly of finite
element operators to [partial assembly](https://mfem.org/howto/assembly_levels/). Setting
this parameter equal to 1 will fully activate operator partial assembly on all levels.
this parameter equal to 1 will fully activate operator partial assembly on all levels, while
setting it to some large number (greater than the finite element order) will result in
fully assembled operators as sparse matrices.

`"Device" ["CPU"]` : The runtime device configuration passed to
[MFEM](https://mfem.org/howto/assembly_levels/) in order to activate different options
Expand Down
2 changes: 1 addition & 1 deletion palace/utils/configfile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ struct SolverData
int order = 1;

// Order above which to use partial assembly instead of full assembly.
int pa_order_threshold = 100;
int pa_order_threshold = 1;

// Include the order of det(J) in the order of accuracy for quadrature rule selection.
bool q_order_jac = false;
Expand Down
3 changes: 0 additions & 3 deletions palace/utils/iodata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,6 @@ void IoData::CheckConfiguration()
}
}

// XX TODO: Default value for pa_order_threshold if we want PA enabled by default
// XX TODO: Enable Device::GPU by default if MFEM built with CUDA/HIP support?

// Resolve default values in configuration file.
if (solver.linear.type == config::LinearSolverData::Type::DEFAULT)
{
Expand Down
Loading