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

Trilinos Master Merge PR Generator: Auto PR created to promote from master_merge_20230616_175856 branch to master #11981

Merged
merged 77 commits into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
8fe7f1c
Fixed issue causing infinite loop on rare occasion.
dpkouri Dec 7, 2022
625c0ce
Removed unistd.h include.
dpkouri Dec 15, 2022
7c13802
proximal gradient implementation with l1 norm
Dec 21, 2022
a30badc
Proximal gradient code clean up.
dpkouri Dec 21, 2022
4d06e8c
Update ROL_TypeP_ProxGradientAlgorithm_Def.hpp
dpkouri Dec 21, 2022
fd58b9f
Minor clean up.
dpkouri Dec 21, 2022
a76e245
Fixed bug in l1 prox.
dpkouri Dec 21, 2022
7b3104d
Added SPG implementation for TypeP.
dpkouri Dec 21, 2022
0f07b7f
Changed output for TypeP SPG.
dpkouri Dec 21, 2022
9507cb4
More clean up of TypeP SPG.
dpkouri Dec 21, 2022
80d2de8
Reduced number of prox evaluations by using computed pg step for gnorm.
dpkouri Dec 21, 2022
ea9e4e5
Added option to PG and SPG to avoid prox of initial guess.
dpkouri Dec 21, 2022
17ebfb0
Removed unneeded comment.
dpkouri Dec 21, 2022
d0e3d1c
Changed estimate for initial alpha in PG. Now, we estimate the
dpkouri Dec 21, 2022
fe78acd
Cleaned up initial alpha computation in PG.
dpkouri Dec 21, 2022
72e1065
Whitespace clean up.
dpkouri Dec 21, 2022
30798b5
Added TypeP Algorithm Factory.
dpkouri Dec 21, 2022
a3b6295
Fixed bug in PG and SPG where the gnorm used was from the previous
dpkouri Dec 22, 2022
0a8badf
Added iPiano algorithm and test.
dpkouri Dec 22, 2022
fbf1cff
Corrected nonsmooth objective update.
dpkouri Dec 22, 2022
5ef08b5
Removed "update" and "checkMultiplier" functions for
dpkouri Dec 22, 2022
d6c9d33
Added a basic quasi-Newton TypeP algorithm. At each iteration, the
dpkouri Dec 23, 2022
d2894a5
Reused PG step to evaluate gnorm, reducing the number of proxs.
dpkouri Dec 24, 2022
c75c7bc
Added quasi-Newton TypeP algorithm to factory.
dpkouri Dec 24, 2022
c41428d
bad tr alg
Dec 24, 2022
e19807f
merge CMakelist
Dec 24, 2022
33cbd8a
Added ROL::ChainRuleObjective which creates an objective composed fro…
gregvw Dec 30, 2022
70b9abb
spg still not working
Jan 4, 2023
9cae558
Merge branch 'develop' of github.com:gregvw/ROL-Trilinos into develop
Jan 4, 2023
c997bf1
Fixed TypeP Trust Region algorithm. Now SPG subproblem solver works.
dpkouri Jan 5, 2023
d499bfc
Replaced indents with spaces.
dpkouri Jan 5, 2023
1674f37
Both dspg and dspg_simple now work. This could still use some cleani…
dpkouri Jan 5, 2023
3a9a30d
Clean up of TypeP trust region and added to TypeP Factory.
dpkouri Jan 5, 2023
8480885
Removed uneccessary recomputation of nonsmooth objective value.
dpkouri Jan 5, 2023
087252a
Added a linesearch inexact proximal Newton method based on Josephy's
dpkouri Jan 6, 2023
52a3752
almost ncg
Jan 6, 2023
3accd1f
Updated the algorithm factory.
dpkouri Jan 6, 2023
45942e4
merged
Jan 6, 2023
7a8bb43
Added more "TypeP" objective functions:
dpkouri Jan 7, 2023
944fd19
working ncg alg
Jan 9, 2023
6ab7cfb
Merge branch 'develop' of github.com:gregvw/ROL-Trilinos into develop
Jan 9, 2023
3e08108
Cleaned up type-p truncated ncg trust-region algorithm.
dpkouri Jan 18, 2023
628a3e8
Modified type-p trust-region test to run all subproblem solvers.
dpkouri Jan 18, 2023
077c565
Print relative error in the infinity norm for the trust-region example.
dpkouri Jan 18, 2023
3610fbc
Fixed comparison bug in StochasticObjective.
dpkouri Jan 18, 2023
cff3ffe
Fixed comments for ncg.
dpkouri Jan 18, 2023
a0bb264
Corrected difference from paper in projected search for Lin-More.
dpkouri Feb 4, 2023
fb0dd21
Updated penalty methods and line search methods to input user defined
dpkouri Feb 23, 2023
e706ad7
l1 fluid flow cylinder example, no cmake
May 16, 2023
8b38879
no rol namespace in NS l1 example
May 16, 2023
bd25f92
1.) Updated dynamic interface to use new update (in progrress).
dpkouri Jun 7, 2023
ff0b4fc
Fixed screwed up CMakeList that I recently committed.
dpkouri Jun 8, 2023
c924eeb
Fixed some other CMake issues from my last commit and added missing
dpkouri Jun 8, 2023
1de2c6b
Merge remote-tracking branch 'upstream/develop' into develop
dridzal Jun 9, 2023
4a848fa
Changed tolerances to prevent test failures. This example could serve
dridzal Jun 10, 2023
3aeb515
Adjusting tolerances once more.
dridzal Jun 10, 2023
6ad92e0
Merge Pull Request #11963 from dridzal/Trilinos/rol-trilinos-sync
trilinos-autotester Jun 11, 2023
1e6f576
Update build to force COMPLEX_DOUBLE and enable FLOAT
srbdev May 23, 2023
2a5ef22
Revert "Update build to force COMPLEX_DOUBLE and enable FLOAT"
srbdev May 30, 2023
f7fc594
Update for new Sierra code requirements.
srbdev May 30, 2023
33b75da
Add float and double options for complex builds
srbdev Jun 5, 2023
7522919
Merge Pull Request #11964 from srbdev/Trilinos/TRILFRAME-378-complex-…
trilinos-autotester Jun 12, 2023
c4571a7
Tpetra: Improving std::move()-ability of BlockMultiVector
csiefer2 Jun 12, 2023
c9e0176
Tpetra: Improving std::move()-ability of BlockMultiVector
csiefer2 Jun 12, 2023
51e55d8
Tpetra: Carl's fixes
csiefer2 Jun 12, 2023
73c410a
MueLu RefMaxwell: Accept "aggregation: phase3 avoid singletons"
cgcgcg Jun 13, 2023
3edf430
Merge pull request #11971 from cgcgcg/refmaxwellFix
cgcgcg Jun 13, 2023
39d54d2
MueLu: Enabling better dumps for Maxwell1
csiefer2 Jun 13, 2023
543855c
KokkosKernels: Don't list include for non-existant 'batched' build di…
bartlettroscoe Jun 13, 2023
a338e79
Merge Pull Request #11966 from trilinos/Trilinos/csiefer-c9e0176
trilinos-autotester Jun 14, 2023
6dccc16
Update MueLu_FactoryManager_def.hpp
csiefer2 Jun 14, 2023
fba42ce
Merge Pull Request #11972 from trilinos/Trilinos/csiefer-39d54d2
trilinos-autotester Jun 14, 2023
d2825e9
Add a spec for all packages + complex<float>
sebrowne Jun 14, 2023
7c630d7
Make work with missing commonTools/build_stats (#11976)
bartlettroscoe Jun 15, 2023
40e37d9
TriBITS: Temp fix for configuring from reduced tarball (#11976)
bartlettroscoe Jun 15, 2023
fe2204c
Merge Pull Request #11973 from sebrowne/Trilinos/add_all_build_for_co…
trilinos-autotester Jun 15, 2023
8e95d51
Merge Pull Request #11977 from trilinos/Trilinos/11976-package_source…
trilinos-autotester Jun 16, 2023
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
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ SET(${PROJECT_NAME}_ENABLE_EXPORT_MAKEFILES OFF CACHE BOOL
# Do all of the processing for this Tribits project
TRIBITS_PROJECT()

INSTALL_BUILD_STATS_SCRIPTS()
if (COMMAND INSTALL_BUILD_STATS_SCRIPTS)
INSTALL_BUILD_STATS_SCRIPTS()
endif()

# Install TriBITS so that other projects can use it.
ADVANCED_SET(${PROJECT_NAME}_INSTALL_TriBITS ON CACHE BOOL
Expand Down
13 changes: 9 additions & 4 deletions cmake/CallbackSetupExtraOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ ENDMACRO()
# Set up for build stats
#

include("${Trilinos_SOURCE_DIR}/commonTools/build_stats/BuildStatsWrappers.cmake")
generate_build_stats_wrappers()
remove_build_stats_file_on_configure()
remove_build_stats_timing_files_on_fresh_configure()
set(buildStatsWrappersFile
"${Trilinos_SOURCE_DIR}/commonTools/build_stats/BuildStatsWrappers.cmake")
if (EXISTS "${buildStatsWrappersFile}")
include("${Trilinos_SOURCE_DIR}/commonTools/build_stats/BuildStatsWrappers.cmake")
generate_build_stats_wrappers()
remove_build_stats_file_on_configure()
remove_build_stats_timing_files_on_fresh_configure()
endif()

Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,18 @@ macro(tribits_read_all_package_deps_files_create_deps_graph)
set(${PROJECT_NAME}_DEFINED_INTERNAL_PACKAGES "") # Packages and subpackages

foreach(TRIBITS_PACKAGE IN LISTS ${PROJECT_NAME}_DEFINED_INTERNAL_TOPLEVEL_PACKAGES)
tribits_read_toplevel_package_deps_files_add_to_graph(${TRIBITS_PACKAGE}
${${TRIBITS_PACKAGE}_REL_SOURCE_DIR})
set(absPackageSrcDir "${PROJECT_SOURCE_DIR}/${${TRIBITS_PACKAGE}_REL_SOURCE_DIR}")
set(packageDependenciesFile "${absPackageSrcDir}/cmake/Dependencies.cmake")
if ( (NOT EXISTS "${packageDependenciesFile}")
AND (NOT ${PROJECT_NAME}_ASSERT_DEFINED_DEPENDENCIES IN_LIST
${PROJECT_NAME}_ASSERT_DEFINED_DEPENDENCIES_ERROR_VALUES_LIST)
)
# ToDo: Print message about the package being missing depending on the
# value of ${PROJECT_NAME}_ASSERT_DEFINED_DEPENDENCIES!
else()
message("${TRIBITS_PACKAGE} package dependency file: '${packageDependenciesFile}' exists!")
tribits_read_toplevel_package_deps_files_add_to_graph(${TRIBITS_PACKAGE})
endif()
endforeach()

list(LENGTH ${PROJECT_NAME}_DEFINED_INTERNAL_PACKAGES
Expand Down
13 changes: 13 additions & 0 deletions packages/framework/ini-files/config-specs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,19 @@ use rhel7_sems-gnu-8.3.0-openmpi-1.10.1-serial_debug_shared_no-kokkos-arch_no-as
use BUILD-TYPE|DEBUG-COVERAGE-GNU
use PACKAGE-ENABLES|ALL

[rhel7_sems-gnu-8.3.0-openmpi-1.10.1-serial_debug_shared_no-kokkos-arch_no-asan_complex-float_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
#uses sems-archive modules
use rhel7_sems-gnu-8.3.0-openmpi-1.10.1-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
opt-set-cmake-var Trilinos_ENABLE_DOUBLE BOOL FORCE : OFF
opt-set-cmake-var Trilinos_ENABLE_COMPLEX_DOUBLE BOOL FORCE : OFF
opt-set-cmake-var Trilinos_ENABLE_FLOAT BOOL FORCE : ON
opt-set-cmake-var Trilinos_ENABLE_COMPLEX_FLOAT BOOL FORCE : ON

[rhel7_sems-gnu-8.3.0-openmpi-1.10.1-serial_debug_shared_no-kokkos-arch_no-asan_complex-float_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
#uses sems-archive modules
use rhel7_sems-gnu-8.3.0-openmpi-1.10.1-serial_debug_shared_no-kokkos-arch_no-asan_complex-float_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL

[rhel7_sems-gnu-8.3.0-serial_release-debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
#uses sems-archive modules
use RHEL7_SEMS_COMPILER|GNU
Expand Down
2 changes: 2 additions & 0 deletions packages/framework/ini-files/supported-config-flags.ini
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ use-asan: SELECT_ONE
use-complex: SELECT_ONE
no-complex
complex
complex-float
complex-double

# Whether or not to turn on position independent code.
use-fpic: SELECT_ONE
Expand Down
15 changes: 12 additions & 3 deletions packages/kokkos-kernels/batched/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ IF (NOT KokkosKernels_ENABLE_COMPONENT_BLAS)
LIST(APPEND SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/batched/KokkosBatched_Util.cpp)
ENDIF()

# Adding unit-tests
KOKKOSKERNELS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/batched)
KOKKOSKERNELS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_DIR}/batched)
IF(KokkosKernels_ENABLE_TESTS OR KokkosKernels_ENABLE_TESTS_AND_PERFSUITE)
# Adding unit-tests
KOKKOSKERNELS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/batched)
KOKKOSKERNELS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING
${CMAKE_CURRENT_SOURCE_DIR}/batched)
ENDIF()
# NOTE: Above, the build directory 'batched' is not created unless unit tests
# are actually enabled (which are actually included from the base-level
# CMakeLists.txt file). And the KokkosKernelsTargets.cmake file that gets
# generated from this CMake package in the build dir will be broken if these
# are listed in the `INTERFACE_INCLUDE_DIRECTORIES` property when the build
# `batched` is not created (see Trilinos PR #11966).
5 changes: 5 additions & 0 deletions packages/muelu/src/MueCentral/MueLu_FactoryManager_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ namespace MueLu {
if (varName == "pcoarsen: element to node map") return GetFactory("P");
#endif

// NOTE: These are user data, but we might want to print them, so they need a default factory
if (varName == "NodeMatrix") return NoFactory::getRCP();
if (varName == "NodeAggMatrix") return NoFactory::getRCP();


TEUCHOS_TEST_FOR_EXCEPTION(true, MueLu::Exceptions::RuntimeError, "MueLu::FactoryManager::GetDefaultFactory(): No default factory available for building '" + varName + "'.");
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/muelu/src/Operators/MueLu_RefMaxwell_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,8 @@ namespace MueLu {
UncoupledAggFact->SetParameter("aggregation: max agg size",Teuchos::ParameterEntry(maxAggSize));
bool matchMLbehavior = parameterList_.get("aggregation: match ML phase2a",MasterList::getDefault<bool>("aggregation: match ML phase2a"));
UncoupledAggFact->SetParameter("aggregation: match ML phase2a",Teuchos::ParameterEntry(matchMLbehavior));
bool avoidSingletons = parameterList_.get("aggregation: phase3 avoid singletons",MasterList::getDefault<bool>("aggregation: phase3 avoid singletons"));
UncoupledAggFact->SetParameter("aggregation: phase3 avoid singletons",Teuchos::ParameterEntry(avoidSingletons));

coarseMapFact->SetFactory("Aggregates", UncoupledAggFact);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

#include "ROL_Stream.hpp"
#include "ROL_ParameterList.hpp"
#include "ROL_OptimizationSolver.hpp"
#include "ROL_Solver.hpp"
#include "ROL_ReducedDynamicObjective.hpp"
#include "ROL_Bounds.hpp"
#include "ROL_DynamicConstraintCheck.hpp"
Expand Down Expand Up @@ -185,8 +185,9 @@ int main(int argc, char *argv[]) {
/*************************************************************************/
/***************** SOLVE OPTIMIZATION PROBLEM ****************************/
/*************************************************************************/
ROL::OptimizationProblem<RealT> problem(obj,z,bnd);
ROL::OptimizationSolver<RealT> solver(problem,*parlist);
auto problem = ROL::makePtr<ROL::Problem<RealT>>(obj,z);
problem->addBoundConstraint(bnd);
ROL::Solver<RealT> solver(problem,*parlist);
z->zero();
std::clock_t timer = std::clock();
solver.solve(*outStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include "ROL_Bounds.hpp"
#include "ROL_Stream.hpp"
#include "ROL_ParameterList.hpp"
#include "ROL_OptimizationSolver.hpp"
#include "ROL_Solver.hpp"
#include "ROL_ReducedDynamicObjective.hpp"
#include "ROL_DynamicConstraintCheck.hpp"
#include "ROL_DynamicObjectiveCheck.hpp"
Expand Down Expand Up @@ -310,8 +310,9 @@ int main(int argc, char *argv[]) {
(*zn)[0] = -amp * std::sin(2.0 * M_PI * Se * timeStamp[k].t[0] + ph);
}
}
ROL::OptimizationProblem<RealT> problem(obj,z);
ROL::OptimizationSolver<RealT> solver(problem,*parlist);
ROL::Ptr<ROL::Problem<RealT>> problem = ROL::makePtr<ROL::Problem<RealT>>(obj,z);
problem->finalize(false,true,*outStream);
ROL::Solver<RealT> solver(problem,*parlist);
std::clock_t timer = std::clock();
solver.solve(*outStream);
*outStream << "Optimization time: "
Expand Down
Loading