Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
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
Container registry
Model registry
Operate
Environments
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
esde
machine-learning
MLAir
Commits
ca087384
Commit
ca087384
authored
5 years ago
by
Felix Kleinert
Browse files
Options
Downloads
Patches
Plain Diff
update run script generator and remve old runscript
parent
f9ecc50c
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!125
Release v0.10.0
,
!124
Update Master to new version v0.10.0
,
!97
Felix issue106 hpc modules for juwels
Pipeline
#34134
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
create_runscripts_HPC.sh
+23
-26
23 additions, 26 deletions
create_runscripts_HPC.sh
run_devgpu.bash
+0
-15
0 additions, 15 deletions
run_devgpu.bash
with
23 additions
and
41 deletions
create_runscripts_HPC.sh
+
23
−
26
View file @
ca087384
...
...
@@ -5,6 +5,7 @@ echo "# #"
echo
"# user interaction required #"
echo
"# #"
echo
"############################################################"
echo
echo
"This script creates the HPC batch scripts to run mlt on compute nodes (gpus and develgpus)."
echo
"You can modify the created run scripts afterwards if needed."
...
...
@@ -13,62 +14,58 @@ echo "You can modify the created run scripts afterwards if needed."
budget
=
''
while
[[
$budget
==
''
]]
do
echo
read
-p
"Enter project budget for --account flag: "
budget
done
email
=
`
jutil user show
-o
json |
grep
email |
cut
-f2
-d
':'
|
cut
-f1
-d
','
|
cut
-f2
-d
'"'
`
echo
read
-p
"Enter e-mail address for --mail-user (default:
${
email
}
): "
new_email
if
[[
-z
"
$new_email
"
]]
;
then
new_email
=
$email
fi
cat
<<
EOT
> run_develgpus.bash
#!/bin/bash -x
#SBATCH --account=
${
budget
}
#SBATCH --nodes=1
#SBATCH --output=mlt-out.%j
#SBATCH --error=mlt-err.%j
#SBATCH --time=02:00:00
#SBATCH --partition=develgpus
#SBATCH --gres=gpu:2
#SBATCH --mail-type=ALL
#SBATCH --mail-user=
${
email
}
source mlt_modules.sh
source venv/bin/activate
# create HPC_logging dir
hpclogging
=
"HPC_logging/"
mkdir
-p
$hpclogging
export PYTHONPATH=
\$
{PWD}/venv/lib/python3.6/site-packages:
\$
{PYTHONPATH}
srun python run.py
EOT
# ordering for looping:
# "partition nGPUs timing"
echo
"Created runscript: run_develgpus.bash"
for
i
in
"develgpus 2 02:00:00"
"gpus 4 08:00:00"
;
do
set
--
$i
cat
<<
EOT
> run_
gpus
.bash
cat
<<
EOT
> run_
$1
.bash
#!/bin/bash -x
#SBATCH --account=
${
budget
}
#SBATCH --nodes=1
#SBATCH --output=mlt-out.%j
#SBATCH --error=mlt-err.%j
#SBATCH --time=
16:00:00
#SBATCH --partition=
gpus
#SBATCH --gres=gpu:
4
#SBATCH --output=
${
hpclogging
}
mlt-out.%j
#SBATCH --error=
${
hpclogging
}
/
mlt-err.%j
#SBATCH --time=
$3
#SBATCH --partition=
$1
#SBATCH --gres=gpu:
$2
#SBATCH --mail-type=ALL
#SBATCH --mail-user=
${
email
}
source mlt_modules.sh
source venv/bin/activate
timestamp=
\`
date +"%Y-%m-%d_%H%M-%S"
\`
export PYTHONPATH=
\$
{PWD}/venv/lib/python3.6/site-packages:
\$
{PYTHONPATH}
srun python run.py
srun python run.py
--experiment_date=
\$
timestamp
EOT
echo
"Created runscript: run_
gpus
.bash"
echo
"Created runscript: run_
$1
.bash"
done
echo
echo
"You have to run the the following command on a login node to download data:"
echo
"
\`
python run.py'"
echo
echo
"Please execute the following command to check if the setup went well:"
echo
"
\`
sbatch run_develgpus.bash'"
This diff is collapsed.
Click to expand it.
run_devgpu.bash
deleted
100755 → 0
+
0
−
15
View file @
f9ecc50c
#!/bin/bash -x
#SBATCH --account=deepacf
#SBATCH --nodes=1
#SBATCH --output=mlt-out.%j
#SBATCH --error=mlt-err.%j
#SBATCH --time=02:00:00
#SBATCH --partition=develgpus
#SBATCH --gres=gpu:2
#SBATCH --mail-type=ALL
#SBATCH --mail-user=f.kleinert@fz-juelich.de
source
mlt_modules.sh
source
venv/bin/activate
export
PYTHONPATH
=
${
PWD
}
/venv/lib/python3.6/site-packages:
${
PYTHONPATH
}
srun python run.py
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