Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
1ed46923
Commit
1ed46923
authored
15 years ago
by
Don Lipari
Browse files
Options
Downloads
Patches
Plain Diff
Added SLURM_SUBMIT_DIR to sbatch man page
parent
6ba6dc24
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/man/man1/sbatch.1
+3
-0
3 additions, 0 deletions
doc/man/man1/sbatch.1
src/sbatch/sbatch.c
+11
-11
11 additions, 11 deletions
src/sbatch/sbatch.c
src/srun/srun.c
+0
-1
0 additions, 1 deletion
src/srun/srun.c
with
14 additions
and
12 deletions
doc/man/man1/sbatch.1
+
3
−
0
View file @
1ed46923
...
...
@@ -1002,6 +1002,9 @@ If the job has been restarted due to system failure or has been
explicitly requeued, this will be sent to the number of times
the job has been restarted.
.TP
\fBSLURM_SUBMIT_DIR\fR
The directory from which \fBsbatch\fR was invoked.
.TP
\fBMPIRUN_PARTITION\fR
The block name on Blue Gene systems only.
...
...
This diff is collapsed.
Click to expand it.
src/sbatch/sbatch.c
+
11
−
11
View file @
1ed46923
...
...
@@ -54,11 +54,11 @@
static
int
fill_job_desc_from_opts
(
job_desc_msg_t
*
desc
);
static
void
*
get_script_buffer
(
const
char
*
filename
,
int
*
size
);
static
void
set_prio_process_env
(
void
);
static
void
set_submit_dir_env
(
void
);
static
int
set_umask_env
(
void
);
static
char
*
script_wrap
(
char
*
command_string
);
static
int
_set_rlimit_env
(
void
);
static
void
_set_prio_process_env
(
void
);
static
int
_set_rlimit_env
(
void
);
static
void
_set_submit_dir_env
(
void
);
static
int
_set_umask_env
(
void
);
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -112,9 +112,9 @@ int main(int argc, char *argv[])
(
void
)
_set_rlimit_env
();
}
set_prio_process_env
();
set_submit_dir_env
();
set_umask_env
();
_
set_prio_process_env
();
_
set_submit_dir_env
();
_
set_umask_env
();
slurm_init_job_desc_msg
(
&
desc
);
if
(
fill_job_desc_from_opts
(
&
desc
)
==
-
1
)
{
exit
(
2
);
...
...
@@ -307,7 +307,7 @@ static int fill_job_desc_from_opts(job_desc_msg_t *desc)
}
/* Set SLURM_SUBMIT_DIR environment variable with current state */
static
void
set_submit_dir_env
(
void
)
static
void
_
set_submit_dir_env
(
void
)
{
char
buf
[
MAXPATHLEN
+
1
];
...
...
@@ -325,7 +325,7 @@ static void set_submit_dir_env(void)
}
/* Set SLURM_UMASK environment variable with current state */
static
int
set_umask_env
(
void
)
static
int
_
set_umask_env
(
void
)
{
char
mask_char
[
5
];
mode_t
mask
;
...
...
@@ -347,13 +347,13 @@ static int set_umask_env(void)
}
/*
* set_prio_process_env
*
_
set_prio_process_env
*
* Set the internal SLURM_PRIO_PROCESS environment variable to support
* the propagation of the users nice value and the "PropagatePrioProcess"
* config keyword.
*/
static
void
set_prio_process_env
(
void
)
static
void
_
set_prio_process_env
(
void
)
{
int
retval
;
...
...
This diff is collapsed.
Click to expand it.
src/srun/srun.c
+
0
−
1
View file @
1ed46923
...
...
@@ -69,7 +69,6 @@
#include
<signal.h>
#include
<termios.h>
#include
<unistd.h>
#include
<fcntl.h>
#include
<grp.h>
...
...
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