Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
b461b5dd
Commit
b461b5dd
authored
5 months ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Remove outdated content
parent
781cf789
No related branches found
Branches containing commit
No related tags found
2 merge requests
!1133
Automated merge from preview to main
,
!1118
Remove beegfs from documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md
+0
-22
0 additions, 22 deletions
...h.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md
with
0 additions
and
22 deletions
doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md
+
0
−
22
View file @
b461b5dd
...
...
@@ -420,25 +420,3 @@ In the following we provide two examples for scripts that submit chain jobs.
Job 3/3: jobfile_c.sh
Dependency: after job 2963709
```
## Array-Job with Afterok-Dependency and Datamover Usage
In this example scenario, imagine you need to move data, before starting the main job.
For this you may use a data transfer job and tell Slurm to start the main job immediately after
data transfer job successfully finish.
First you have to start your data transfer job, which for example transfers your input data from one
workspace to another.
```
console
marie@login$
export
DATAMOVER_JOB
=
$(
dtcp /scratch/ws/1/marie-source/input.txt /beegfs/ws/1/marie-target/. |
awk
'{print $4}'
)
```
Now you can refer to the job id of the Datamover jobs from your work load jobs.
```
console
marie@login$
srun
--dependency
afterok:
${
DATAMOVER_JOB
}
ls
/beegfs/ws/1/marie-target
srun: job 23872871 queued and waiting for resources
srun: job 23872871 has been allocated resources
input.txt
```
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