Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
d3128ea1
Commit
d3128ea1
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
Restructure doc string of setup_log_cmd
parent
1c3897b1
No related branches found
No related tags found
3 merge requests
!19
Move linux-debian11 into main
,
!13
Restructure doc strings
,
!11
Making docstrings comply with numpydoc
Pipeline
#368403
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpsd-software-environment.py
+17
-13
17 additions, 13 deletions
mpsd-software-environment.py
with
17 additions
and
13 deletions
mpsd-software-environment.py
+
17
−
13
View file @
d3128ea1
...
...
@@ -14,6 +14,7 @@ This function builds toolchains for MPSD-HPC at the appropriate directory, \n
for given system architecture and MPSD software stack version.
\n
The toolchains
are built using the bash script spack_setup.sh, and the results are logged.
"""
config_vars
=
{
"
cmd_log_file
"
:
"
install.log
"
,
"
build_log_file
"
:
(
...
...
@@ -47,20 +48,23 @@ class os_chdir:
def
setup_log_cmd
(
mpsd_release
:
str
,
script_dir
:
str
,
msg
:
str
=
None
,
*
args
,
**
kwargs
)
->
None
:
"""
The setup_log_cmd function logs the command used to build the
toolchains, along with information about the software
environment installer
branch, the Spack environments branch, and the commit hashes of each. It
also logs steps taken in
install process using the optional message
argument.
Args:
mpsd_release
(str): The name of the release to install toolchains for.
script_dir (str): The path to the directory where the scripts are located
.
msg (str, optional): An optional message to log in the command log file.
Returns:
None
"""
The setup_log_cmd function logs the command used to build the
toolchains, along with information about the software
environment installer
branch, the Spack environments branch, and the commit hashes of each. It
also logs steps taken
in the
install process using the optional message
argument.
Parameters
----------
-
mpsd_release
: str
The name of the release to install toolchains for
.
- script_dir : str
The path to the directory where the scripts are located.
- msg : str, optional
An optional message to log in the command log file.
Returns
-------
- None
"""
release_base_dir
=
script_dir
/
mpsd_release
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment