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

packages/framework: #11330

Merged
merged 3 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 4 additions & 1 deletion packages/framework/ini-files/config-specs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@
#------------------------------------------------------------------------------

[COMMON]
opt-set-cmake-var CMAKE_GENERATOR STRING : Ninja
#opt-set-cmake-var Trilinos_ENABLE_BUILD_STATS BOOL : ON

# LINK_JOBS_LIMIT only has an affect when CMAKE_GENERATOR=Ninja, default to 2
opt-set-cmake-var Trilinos_PARALLEL_LINK_JOBS_LIMIT STRING : 2

Expand Down Expand Up @@ -862,7 +865,7 @@ opt-set-cmake-var Trilinos_ENABLE_Zoltan2Core BOOL : ON

[NODE-TYPE|CUDA_USE-RDC|YES_USE-PT|YES]
# LINK_JOBS_LIMIT only has an affect when CMAKE_GENERATOR=Ninja
opt-set-cmake-var Trilinos_PARALLEL_LINK_JOBS_LIMIT STRING FORCE : 10
opt-set-cmake-var Trilinos_PARALLEL_LINK_JOBS_LIMIT STRING FORCE : 32

[NODE-TYPE|CUDA_USE-RDC|YES_USE-PT|NO]
# LINK_JOBS_LIMIT only has an affect when CMAKE_GENERATOR=Ninja
Expand Down
16 changes: 6 additions & 10 deletions packages/framework/pr_tools/LaunchDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ def get_launch_env(build_name : str, system : str):
"""
Gets the launch environment based on the detected system.
This is an early environment that's required for running the driver.
Returns:
str: The environment used to launch the driver.
"""
env = ""
if "_rdc" in build_name:
env += " TRILINOS_MAX_CORES=10"

if system == "weaver" or system == "ats2":
env += " Trilinos_CTEST_DO_ALL_AT_ONCE=TRUE"
env += " TRILINOS_MAX_CORES=96"

if env == "":
return ""
Expand All @@ -49,25 +46,25 @@ def get_launch_env(build_name : str, system : str):
def get_launch_cmd(build_name : str, system : str):
"""
Gets the launch command based on the detected system.
Returns:
str: The command used to launch the driver.
"""
if system == "weaver" or system == "ats2":
cmd = "bsub -Is -J " + build_name + " -W 12:00"
else:
cmd = ""
cmd = ""

return cmd + " "


def get_driver_args(system : str):
"""
Gets the driver arguments based on the detected system.
Returns:
str: The arguments passed to the driver.
"""
"""
return " " + "--on_" + system


Expand Down Expand Up @@ -112,4 +109,3 @@ def main(argv):

if __name__ == "__main__":
main(sys.argv[1 :])