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
b4252645
Commit
b4252645
authored
7 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Continuation of commit
79ff60f4
warning of the dangers of pn_min_memory.
Bug 3815
parent
79ff60f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/job_submit/lua/job_submit_lua.c
+12
-0
12 additions, 0 deletions
src/plugins/job_submit/lua/job_submit_lua.c
with
12 additions
and
0 deletions
src/plugins/job_submit/lua/job_submit_lua.c
+
12
−
0
View file @
b4252645
...
@@ -354,6 +354,10 @@ static int _job_rec_field(const struct job_record *job_ptr,
...
@@ -354,6 +354,10 @@ static int _job_rec_field(const struct job_record *job_ptr,
else
else
lua_pushnumber
(
L
,
NO_VAL
);
lua_pushnumber
(
L
,
NO_VAL
);
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
/*
* FIXME: Remove this in the future, lua can't handle 64bit
* numbers!!!. Use min_mem_per_node|cpu instead.
*/
if
(
job_ptr
->
details
)
if
(
job_ptr
->
details
)
lua_pushnumber
(
L
,
job_ptr
->
details
->
pn_min_memory
);
lua_pushnumber
(
L
,
job_ptr
->
details
->
pn_min_memory
);
else
else
...
@@ -773,6 +777,10 @@ static int _get_job_req_field(const struct job_descriptor *job_desc,
...
@@ -773,6 +777,10 @@ static int _get_job_req_field(const struct job_descriptor *job_desc,
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_cpus"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_cpus"
))
{
lua_pushnumber
(
L
,
job_desc
->
pn_min_cpus
);
lua_pushnumber
(
L
,
job_desc
->
pn_min_cpus
);
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
/*
* FIXME: Remove this in the future, lua can't handle 64bit
* numbers!!!. Use min_mem_per_node|cpu instead.
*/
lua_pushnumber
(
L
,
job_desc
->
pn_min_memory
);
lua_pushnumber
(
L
,
job_desc
->
pn_min_memory
);
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_tmp_disk"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_tmp_disk"
))
{
lua_pushnumber
(
L
,
job_desc
->
pn_min_tmp_disk
);
lua_pushnumber
(
L
,
job_desc
->
pn_min_tmp_disk
);
...
@@ -995,6 +1003,10 @@ static int _set_job_req_field(lua_State *L)
...
@@ -995,6 +1003,10 @@ static int _set_job_req_field(lua_State *L)
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_cpus"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_cpus"
))
{
job_desc
->
pn_min_cpus
=
luaL_checknumber
(
L
,
3
);
job_desc
->
pn_min_cpus
=
luaL_checknumber
(
L
,
3
);
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_memory"
))
{
/*
* FIXME: Remove this in the future, lua can't handle 64bit
* numbers!!!. Use min_mem_per_node|cpu instead.
*/
job_desc
->
pn_min_memory
=
luaL_checknumber
(
L
,
3
);
job_desc
->
pn_min_memory
=
luaL_checknumber
(
L
,
3
);
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_tmp_disk"
))
{
}
else
if
(
!
xstrcmp
(
name
,
"pn_min_tmp_disk"
))
{
job_desc
->
pn_min_tmp_disk
=
luaL_checknumber
(
L
,
3
);
job_desc
->
pn_min_tmp_disk
=
luaL_checknumber
(
L
,
3
);
...
...
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