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
4f869dd5
Commit
4f869dd5
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
NRT - simplify code
parent
479e422b
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/switch/nrt/libpermapi/shr_64.c
+7
-8
7 additions, 8 deletions
src/plugins/switch/nrt/libpermapi/shr_64.c
with
7 additions
and
8 deletions
src/plugins/switch/nrt/libpermapi/shr_64.c
+
7
−
8
View file @
4f869dd5
...
...
@@ -117,8 +117,7 @@ extern int pe_rm_connect(rmhandle_t resource_mgr,
rm_connect_param
*
connect_param
,
int
*
rm_sockfds
,
int
rm_timeout
,
char
**
error_msg
)
{
srun_job_t
**
job_ptr
=
(
srun_job_t
**
)
resource_mgr
;
srun_job_t
*
job
=
*
job_ptr
;
srun_job_t
*
job
=
*
(
srun_job_t
**
)
resource_mgr
;
int
my_argc
=
1
;
char
*
my_argv
[
2
]
=
{
connect_param
->
executable
,
NULL
};
// char *my_argv[2] = { "/bin/hostname", NULL };
...
...
@@ -126,6 +125,10 @@ extern int pe_rm_connect(rmhandle_t resource_mgr,
uint32_t
global_rc
=
0
;
int
i
,
rc
,
fd_cnt
;
int
*
ctx_sockfds
=
NULL
;
/* If the PMD calls this and it didn't launch anything we need
* to not do anything here or PMD will crap out on it. */
if
(
!
job
)
return
-
1
;
debug
(
"got pe_rm_connect called"
);
...
...
@@ -184,15 +187,10 @@ extern int pe_rm_connect(rmhandle_t resource_mgr,
extern
void
pe_rm_free
(
rmhandle_t
*
resource_mgr
)
{
uint32_t
rc
=
0
;
srun_job_t
**
job_ptr
;
srun_job_t
*
job
;
srun_job_t
*
job
=
*
(
srun_job_t
**
)
resource_mgr
;
/* If the PMD calls this and it didn't launch anything we need
* to not do anything here or PMD will crap out on it. */
if
(
!
resource_mgr
||
!*
resource_mgr
)
return
;
job_ptr
=
(
srun_job_t
**
)
*
resource_mgr
;
job
=
*
job_ptr
;
if
(
!
job
)
return
;
...
...
@@ -289,6 +287,7 @@ extern int pe_rm_get_event(rmhandle_t resource_mgr, job_event_t **job_event,
{
job_event_t
*
ret_event
=
NULL
;
int
*
state
;
debug
(
"got pe_rm_get_event called %d %p %p"
,
rm_timeout
,
job_event
,
*
job_event
);
...
...
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