From 91d63d9248ba7fb6ec669b35e34191fa4986bf7c Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 1 Mar 2016 15:06:43 -0800 Subject: [PATCH] HDF: Add "Node Index" to the node group --- src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c | 1 + src/plugins/acct_gather_profile/hdf5/hdf5_api.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c b/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c index c07dae0d267..f38e51d549e 100644 --- a/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c +++ b/src/plugins/acct_gather_profile/hdf5/acct_gather_profile_hdf5.c @@ -367,6 +367,7 @@ extern int acct_gather_profile_p_node_step_start(stepd_step_rec_t* job) info("PROFILE: Failed to create Node group"); return SLURM_FAILURE; } + put_int_attribute(gid_node, ATTR_NODEINX, g_job->nodeid); put_string_attribute(gid_node, ATTR_NODENAME, g_job->node_name); put_int_attribute(gid_node, ATTR_NTASKS, g_job->node_tasks); put_int_attribute(gid_node, ATTR_CPUPERTASK, g_job->cpus_per_task); diff --git a/src/plugins/acct_gather_profile/hdf5/hdf5_api.h b/src/plugins/acct_gather_profile/hdf5/hdf5_api.h index 0b8936fa471..9f59cfd8e54 100644 --- a/src/plugins/acct_gather_profile/hdf5/hdf5_api.h +++ b/src/plugins/acct_gather_profile/hdf5/hdf5_api.h @@ -65,6 +65,7 @@ #define MAX_ATTR_NAME 64 #define MAX_GROUP_NAME 64 +#define ATTR_NODEINX "Node Index" #define ATTR_NODENAME "Node Name" #define ATTR_NSTEPS "Number of Steps" #define ATTR_NNODES "Number of Nodes" -- GitLab