static xbt_dynar_t get_reqq_self(){
char * key;
- asprintf(&key, "%d", smpi_process_index());
+ int size = asprintf(&key, "%d", smpi_process_index());
+ if(size==-1)
+ xbt_die("could not allocate memory for asprintf");
xbt_dynar_t dynar_mpi_request = (xbt_dynar_t) xbt_dict_get(reqq, key);
free(key);
static void set_reqq_self(xbt_dynar_t mpi_request){
char * key;
- asprintf(&key, "%d", smpi_process_index());
+ int size = asprintf(&key, "%d", smpi_process_index());
+ if(size==-1)
+ xbt_die("could not allocate memory for asprintf");
xbt_dict_set(reqq, key, mpi_request, free);
free(key);
}
XBT_VERB("Delayed start for instance - Sleeping for %f flops ",value );
smpi_execute_flops(value);
} else {
- //UGLY done to force context switch to be sure that all MSG_processes begin initialization
+ //UGLY: force a context switch to be sure that all MSG_processes begin initialization
XBT_DEBUG("Force context switch by smpi_execute_flops - Sleeping for 0.0 flops ");
smpi_execute_flops(0.0);
}