Skip to content
Snippets Groups Projects
Commit d986c759 authored by Morris Jette's avatar Morris Jette
Browse files

task/affinity: log daemon initial CPU mask

parent 33bef27f
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,13 @@ const uint32_t plugin_version = SLURM_VERSION_NUMBER;
*/
extern int init (void)
{
debug("%s loaded", plugin_name);
cpu_set_t cur_mask;
char mstr[1 + CPU_SETSIZE / 4];
slurm_getaffinity(0, sizeof(cur_mask), &cur_mask);
cpuset_to_str(&cur_mask, mstr);
verbose("%s loaded with CPU mask %s", plugin_name, mstr);
return SLURM_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment