Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
w2w
autoicon
Commits
6544eb7e
Commit
6544eb7e
authored
1 year ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Modify example_utils to use the autosubmit expid -conf option.
parent
a57e9f4e
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Adding additional files to make creation of experiments easier
Pipeline
#19333
failed
1 year ago
Stage: build
Stage: run_tests
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/example_utils.sh
+28
-28
28 additions, 28 deletions
examples/example_utils.sh
with
28 additions
and
28 deletions
examples/example_utils.sh
+
28
−
28
View file @
6544eb7e
...
...
@@ -73,39 +73,39 @@ function setup_project() {
# If experiment directory doesn't exist, create it and set up the experiment
if
[
!
-e
autosubmit/
$EXPID
/
]
;
then
mkdir
-p
autosubmit/
$EXPID
/
autosubmit expid
-min
-H
lmu
-d
myiconsim
-repo
$PROJECT_ORIGIN
-b
$PROJECT_BRANCH
&>
>(
tee
autosubmit/
$EXPID
/log.autosubmit.expid
)
autosubmit expid
-min
-H
lmu
-d
myiconsim
-repo
$PROJECT_ORIGIN
-b
$PROJECT_BRANCH
-conf
"conf/
${
ICON_CASE
}
.yml"
&>
>(
tee
autosubmit/
$EXPID
/log.autosubmit.expid
)
AUTOID
=
$(
grep
Experiment autosubmit/
$EXPID
/log.autosubmit.expid |
awk
'{print $2}'
)
mv
-v
autosubmit/
$AUTOID
/
*
autosubmit/
$EXPID
rmdir
-v
autosubmit/
$AUTOID
fi
# Create and write the minimal config file
cat
>
autosubmit/
$EXPID
/conf/minimal.yml
<<
EOF
ICON_CASE: "
${
ICON_CASE
}
"
CONFIG:
AUTOSUBMIT_VERSION: "
$AUTOSUBMIT_VERSION
"
TOTALJOBS: 20
MAXWAITINGJOBS: 20
RETRIALS: 0
DEFAULT:
EXPID: "
$EXPID
"
HPCARCH: "
${
PLATFORM
}
" # use LMU to run on cluster
CUSTOM_CONFIG:
PRE:
- "%PROJDIR%/conf/common"
- "%PROJDIR%/conf/%ICON_CASE%"
PROJECT:
PROJECT_TYPE: "git"
PROJECT_DESTINATION: "autoicon"
GIT:
PROJECT_ORIGIN: "
$PROJECT_ORIGIN
"
PROJECT_BRANCH: "
$PROJECT_BRANCH
"
PROJECT_COMMIT: ""
PROJECT_SUBMODULES: ""
FETCH_SINGLE_BRANCH: True
EOF
#
# Create and write the minimal config file
#
cat >autosubmit/$EXPID/conf/minimal.yml <<EOF
#
ICON_CASE: "${ICON_CASE}"
#
#
CONFIG:
#
AUTOSUBMIT_VERSION: "$AUTOSUBMIT_VERSION"
#
TOTALJOBS: 20
#
MAXWAITINGJOBS: 20
#
RETRIALS: 0
#
DEFAULT:
#
EXPID: "$EXPID"
#
HPCARCH: "${PLATFORM}" # use LMU to run on cluster
#
CUSTOM_CONFIG:
#
PRE:
#
- "%PROJDIR%/conf/common"
#
- "%PROJDIR%/conf/%ICON_CASE%"
#
#
PROJECT:
#
PROJECT_TYPE: "git"
#
PROJECT_DESTINATION: "autoicon"
#
GIT:
#
PROJECT_ORIGIN: "$PROJECT_ORIGIN"
#
PROJECT_BRANCH: "$PROJECT_BRANCH"
#
PROJECT_COMMIT: ""
#
PROJECT_SUBMODULES: ""
#
FETCH_SINGLE_BRANCH: True
#
EOF
# Create and write the additional config file
cat
>
autosubmit/
${
EXPID
}
/conf/01_myconf.yml
<<
EOF
...
...
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