Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Master Thesis Custom SLURM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
becker29
Master Thesis Custom SLURM
Commits
9fdfce51
Commit
9fdfce51
authored
1 year ago
by
René Pascal Becker
Browse files
Options
Downloads
Patches
Plain Diff
Use a single message type with request types
parent
dccdbe0d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/mpi/pmix/pmixp_spawn.c
+12
-6
12 additions, 6 deletions
src/plugins/mpi/pmix/pmixp_spawn.c
with
12 additions
and
6 deletions
src/plugins/mpi/pmix/pmixp_spawn.c
+
12
−
6
View file @
9fdfce51
...
...
@@ -62,8 +62,14 @@
#define THESIS_LOG FILE *ptr = fopen("/home/pmix","a"); fprintf(ptr, "%s:%d called\n", __FILE__, __LINE__); fclose(ptr);
#define DPM_AGENT_KEYSTORE_PUBLISH_MSG 0x100
#define DPM_AGENT_KEYSTORE_LOOKUP_MSG 0x101
#define DPM_AGENT_KEYSTORE_MSG 0x100
enum
KeyStoreRequests
{
STORE_PUBLISH
,
STORE_LOOKUP
,
STORE_UNPUBLISH
};
struct
PmixInfoData
{
...
...
@@ -211,10 +217,10 @@ int publish_to_dpm_agent(const pmix_proc_t *proc, const pmix_info_t info[], size
char
data
[
max_publish_size
];
memset
((
void
*
)
data
,
0
,
max_publish_size
);
snprintf
(
data
,
max_publish_size
,
"%s,%zu,%s,%s"
,
"%
d,%
s,%zu,%s,%s"
,
(
int
)
STORE_PUBLISH
,
(
const
char
*
)
proc
->
nspace
,
(
size_t
)
proc
->
rank
,
info_data
.
key
,
info_data
.
value
);
if
(
!
_send_message
(
socket_fd
,
DPM_AGENT_KEYSTORE_
PUBLISH_
MSG
,
data
))
if
(
!
_send_message
(
socket_fd
,
DPM_AGENT_KEYSTORE_MSG
,
data
))
return
0
;
close
(
socket_fd
);
return
1
;
...
...
@@ -252,10 +258,10 @@ int lookup_from_dpm_agent(const pmix_proc_t *proc, const pmix_info_t info[], siz
char
data
[
max_lookup_size
];
memset
((
void
*
)
data
,
0
,
max_lookup_size
);
snprintf
(
data
,
max_lookup_size
,
"%s,%zu,%s"
,
"%
d,%
s,%zu,%s"
,
(
int
)
STORE_LOOKUP
,
(
const
char
*
)
proc
->
nspace
,
(
size_t
)
proc
->
rank
,
key
);
if
(
!
_send_message
(
socket_fd
,
DPM_AGENT_KEYSTORE_
LOOKUP_
MSG
,
data
))
if
(
!
_send_message
(
socket_fd
,
DPM_AGENT_KEYSTORE_MSG
,
data
))
return
0
;
close
(
socket_fd
);
return
1
;
...
...
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