Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Admire-Remote-Sensing
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdlrs
Admire-Remote-Sensing
Commits
d3331385
Commit
d3331385
authored
1 year ago
by
Surbhi Sharma
Browse files
Options
Downloads
Patches
Plain Diff
jobscript-hercules
parent
6e53080d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ad-hoc Storage Systems/Hercules/jobscript_juwels_tf2module_hvd-modified-cascadalake_hercules.sh
+63
-0
63 additions, 0 deletions
...ipt_juwels_tf2module_hvd-modified-cascadalake_hercules.sh
with
63 additions
and
0 deletions
Ad-hoc Storage Systems/Hercules/jobscript_juwels_tf2module_hvd-modified-cascadalake_hercules.sh
0 → 100644
+
63
−
0
View file @
d3331385
#!/usr/bin/env bash
#SBATCH --job-name=remotesensing_h
#SBATCH --partition=cascadelake
#SBATCH --output=%j_%x.log
#SBATCH --error=%j_%x.err
#SBATCH --oversubscribe
#SBATCH --overcommit
# Hercules configuration path.
CONFIG_PATH
=
$1
# To load mpich.
spack load mpich@3.2.1%gcc@
=
9.4.0
arch
=
linux-ubuntu20.04-zen
# To load Hercules.
spack load hercules
# To get the path where Hercules has been installed.
HERCULES_PATH
=
$(
spack find
--paths
--loaded
hercules |
grep
hercules |
awk
'{print $2}'
)
export
LD_LIBRARY_PATH
=
${
HERCULES_PATH
}
/lib:
$LD_LIBRARY_PATH
# Setting "ibs1" to UCX fix a bug because --network-interface "ibs1" is used in horovodrun.
export
UCX_NET_DEVICES
=
ibs1
echo
"Starting Hercules"
start_
=
$(
date
+%s.%N
)
echo
"Hercules configuration file:
$CONFIG_PATH
"
# To start Hercules back-end (data and metadata servers).
hercules start
-f
"
$CONFIG_PATH
"
end_
=
$(
date
+%s.%N
)
runtime
=
$(
echo
"
$end_
-
$start_
"
| bc
-l
)
echo
"Hercules started in
$runtime
seconds, start=
$start_
, end=
$end_
"
set
-x
# Needed enviroments variables to run Hercules front-end.
# To intercept all system calls by using Hercules.
export
LD_PRELOAD
=
libhercules_posix.so
# Hercules' configuration file.
export
HERCULES_CONF
=
$CONFIG_PATH
# Copy the "Data" directory to Hercules.
srun
--export
=
ALL
--nodes
=
1
--ntasks
=
1
cp
-r
./Data /mnt/hercules/
# Creates the "checkpoints_200ep" directory inside Hercules.
srun
--export
=
ALL
--nodes
=
1
--ntasks
=
1
mkdir
/mnt/hercules/checkpoints_200ep
# Activate virtual enviroment.
source
/beegfs/home/j.arnold/admire_toymodel/bin/activate
#run Python program
#NODELIST=$(scontrol show hostnames "$SLURM_JOB_NODELIST")
#printf '%s\n' "${NODELIST[@]}"
#--verbose --log-level TRACE
echo
"Current directory=
$PWD
"
srun
--export
=
ALL
-N
1 horovodrun
--verbose
--log-level
FATAL
--gloo-timeout-seconds
120
-np
1
--min-np
1
--max-np
1
--network-interface
"ibs1f1"
--host-discovery-script
/beegfs/home/javier.garciablas/gsanchez/Horovod-with-gloo/discover_hosts-new.sh
--slots
1 python ./train_elastic_hvd_keras_aug_effnet_hercules.py
echo
"After running"
ls
-lh
/mnt/hercules/checkpoints_200ep
# To stop intercepting system calls by using Hercules.
unset
LD_PRELOAD
# To stop Hercules data and metadata servers.
hercules stop
-f
"
$CONFIG_PATH
"
set
+x
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