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
f7777cd5
Commit
f7777cd5
authored
11 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
job_submit/lua - add cpus_per_task field
bug 511
parent
97f8a501
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/plugins/job_submit/lua/job_submit_lua.c
+4
-0
4 additions, 0 deletions
src/plugins/job_submit/lua/job_submit_lua.c
with
5 additions
and
0 deletions
NEWS
+
1
−
0
View file @
f7777cd5
...
@@ -7,6 +7,7 @@ documents those changes that are of interest to users and admins.
...
@@ -7,6 +7,7 @@ documents those changes that are of interest to users and admins.
more than one numeric range in brackets (e.g. rack[0-3]_blade[0-63]").
more than one numeric range in brackets (e.g. rack[0-3]_blade[0-63]").
-- Add notification if using proctrack/cgroup and task/cgroup when oom hits.
-- Add notification if using proctrack/cgroup and task/cgroup when oom hits.
-- Corrections to advanced reservation logic with overlapping jobs.
-- Corrections to advanced reservation logic with overlapping jobs.
-- job_submit/lua - add cpus_per_task field to those available.
* Changes in Slurm 2.6.4
* Changes in Slurm 2.6.4
========================
========================
...
...
This diff is collapsed.
Click to expand it.
src/plugins/job_submit/lua/job_submit_lua.c
+
4
−
0
View file @
f7777cd5
...
@@ -375,6 +375,8 @@ static int _get_job_req_field (lua_State *L)
...
@@ -375,6 +375,8 @@ static int _get_job_req_field (lua_State *L)
lua_pushnumber
(
L
,
job_desc
->
contiguous
);
lua_pushnumber
(
L
,
job_desc
->
contiguous
);
}
else
if
(
!
strcmp
(
name
,
"cores_per_socket"
))
{
}
else
if
(
!
strcmp
(
name
,
"cores_per_socket"
))
{
lua_pushnumber
(
L
,
job_desc
->
cores_per_socket
);
lua_pushnumber
(
L
,
job_desc
->
cores_per_socket
);
}
else
if
(
!
strcmp
(
name
,
"cpus_per_task"
))
{
lua_pushnumber
(
L
,
job_desc
->
cpus_per_task
);
}
else
if
(
!
strcmp
(
name
,
"default_account"
))
{
}
else
if
(
!
strcmp
(
name
,
"default_account"
))
{
lua_pushstring
(
L
,
_get_default_account
(
job_desc
->
user_id
));
lua_pushstring
(
L
,
_get_default_account
(
job_desc
->
user_id
));
}
else
if
(
!
strcmp
(
name
,
"dependency"
))
{
}
else
if
(
!
strcmp
(
name
,
"dependency"
))
{
...
@@ -499,6 +501,8 @@ static int _set_job_req_field (lua_State *L)
...
@@ -499,6 +501,8 @@ static int _set_job_req_field (lua_State *L)
job_desc
->
contiguous
=
luaL_checknumber
(
L
,
3
);
job_desc
->
contiguous
=
luaL_checknumber
(
L
,
3
);
}
else
if
(
!
strcmp
(
name
,
"cores_per_socket"
))
{
}
else
if
(
!
strcmp
(
name
,
"cores_per_socket"
))
{
job_desc
->
cores_per_socket
=
luaL_checknumber
(
L
,
3
);
job_desc
->
cores_per_socket
=
luaL_checknumber
(
L
,
3
);
}
else
if
(
!
strcmp
(
name
,
"cpus_per_task"
))
{
job_desc
->
cpus_per_task
=
luaL_checknumber
(
L
,
3
);
}
else
if
(
!
strcmp
(
name
,
"dependency"
))
{
}
else
if
(
!
strcmp
(
name
,
"dependency"
))
{
value_str
=
luaL_checkstring
(
L
,
3
);
value_str
=
luaL_checkstring
(
L
,
3
);
xfree
(
job_desc
->
dependency
);
xfree
(
job_desc
->
dependency
);
...
...
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