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
49e87882
Commit
49e87882
authored
2 years ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Update workspace sectioN: save result files to workspace not home
parent
7ec3527b
No related branches found
Branches containing commit
No related tags found
2 merge requests
!762
Automated merge from preview to main
,
!750
Update Slurm Job File generator page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_generator.md
+10
-2
10 additions, 2 deletions
....tu-dresden.de/docs/jobs_and_resources/slurm_generator.md
with
10 additions
and
2 deletions
doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_generator.md
+
10
−
2
View file @
49e87882
...
...
@@ -826,6 +826,13 @@ along with sgen. If not, see <http://www.gnu.org/licenses/>.
outputText.innerText += '\ncd ${WSDIR}';
}
if (document.getElementById('check-workspace').checked && document.getElementById('check-delete').checked) {
outputText.innerText += '\n\n# The workspace where results from multiple experiments will be saved for later analysis.';
outputText.innerText += '\n# Remark: Make sure RESULT_WSDIR exists!';
outputText.innerText += '\nRESULT_WSDIR="/path/to/workspace-experiments-results"'
outputText.innerText += '\ntest -z "${RESULT_WSDIR}" && echo "Error: Cannot find workspace ${RESULT_WSDIR}" && exit 1';
}
if (document.getElementById('executable').value !== '') {
outputText.innerText += '\n\n# Execute parallel application ';
outputText.innerText += '\nsrun '
...
...
@@ -836,9 +843,10 @@ along with sgen. If not, see <http://www.gnu.org/licenses/>.
}
if (document.getElementById('check-workspace').checked && document.getElementById('check-delete').checked) {
outputText.innerText += '\n\n# Save your results
, e.g. in your home directory
';
outputText.innerText += '\n\n# Save your results
to the general workspace RESULT_WSDIR (s.a.).
';
outputText.innerText += '\n# Compress results with bzip2 (which includes CRC32 checksums)';
outputText.innerText += '\nbzip2 --compress --stdout -4 "${WSDIR}" > ${HOME}/${SLURM_JOB_ID}.bz2';
outputText.innerText += '\n# Remark: Assume all result and log files of interest are in the directory `results`.';
outputText.innerText += '\nbzip2 --compress --stdout -4 "${WSDIR}/results" > ${RESULT_WSDIR}/${SLURM_JOB_ID}.bz2';
outputText.innerText += '\nRETURN_CODE=$?';
outputText.innerText += '\nCOMPRESSION_SUCCESS="$(if test ${RETURN_CODE} -eq 0; then echo'
+' \'TRUE\'; else echo \'FALSE\'; fi)"';
...
...
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