Commit 14c5f217 authored by Frank Winkler's avatar Frank Winkler
Browse files

Added threads_per_core info.

parent 23e669e6
......@@ -43,7 +43,7 @@
*/
#define PLUGIN_NAME "PrEp-pika: "
#define STRING_LEN 512
#define STRING_LEN 1024
const char plugin_name[] = "PrEp plugin pika";
......@@ -253,14 +253,9 @@ static void job_data_prolog(job_record_t *job_ptr, char **job_data)
for (i = 0; i < job_ptr->gres_detail_cnt; i++)
snprintf(*job_data + strlen(*job_data), STRING_LEN - strlen(*job_data), "gres_detail_str[%d] = %s\n", i, gres_detail_str[i]);
List gres_list = job_ptr->gres_list;
ListIterator gres_iterator;
char * gres_item;
gres_iterator = list_iterator_create(gres_list);
while ((gres_item = list_next(gres_iterator))) {
snprintf(*job_data + strlen(*job_data), STRING_LEN - strlen(*job_data), "gres_iterator: %s\n", gres_item);
}
list_iterator_destroy(gres_iterator);
// smt
snprintf(*job_data + strlen(*job_data), STRING_LEN - strlen(*job_data), "threads_per_core = %d\n", job_ptr->details->mc_ptr->threads_per_core);
snprintf(*job_data + strlen(*job_data), STRING_LEN - strlen(*job_data), "----");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment