GitLab maintenance scheduled for Today, 2019-12-05, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit f928306e authored by Misbah Mubarak's avatar Misbah Mubarak

updates to workload replay to account for compute delay, updating mpi sim...

updates to workload replay to account for compute delay, updating mpi sim layer to generate less events, fixing compute delays
parent 7ec32c66
......@@ -159,7 +159,6 @@ int codes_workload_load(
for(i=0; method_array[i] != NULL; i++)
{
printf("\n loading for workload %s %s ", type, method_array[i]->method_name);
if(strcmp(method_array[i]->method_name, type) == 0)
{
/* load appropriate workload generator */
......
......@@ -32,6 +32,7 @@ static int rank_tbl_pop = 0;
static int total_rank_cnt = 0;
ABT_thread global_prod_thread = NULL;
ABT_xstream self_es;
double cpu_freq = 1.0;
struct shared_context {
int my_rank;
......@@ -278,13 +279,15 @@ void SWM_Irecv(SWM_PEER peer,
void SWM_Compute(long cycle_count)
{
if(!cpu_freq)
cpu_freq = 4.0e9;
/* Add an event in the shared queue and then yield */
struct codes_workload_op wrkld_per_rank;
wrkld_per_rank.op_type = CODES_WK_DELAY;
/* TODO: Check how to convert cycle count into delay? */
wrkld_per_rank.u.delay.nsecs = cycle_count;
wrkld_per_rank.u.delay.nsecs = (cycle_count/cpu_freq);
wrkld_per_rank.u.delay.seconds = (cycle_count / cpu_freq) / (1000.0 * 1000.0 * 1000.0);
#ifdef DBG_COMM
printf("\n compute op delay: %ld ", cycle_count);
#endif
......@@ -713,6 +716,7 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
// boost::property_tree::json_parser::write_json("file.json", root);
boost::property_tree::json_parser::read_json(jsonFile, root);
uint32_t process_cnt = root.get<uint32_t>("jobs.size", 1);
cpu_freq = root.get<double>("jobs.cfg.cpu_freq");
}
catch(std::exception & e)
{
......
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