Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hacc swm #1

Open
wants to merge 2 commits into
base: qos-debug2-mpireplay-neilfix-isc-swm
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CODES Discrete-event Simulation Framework

### New? Check out the Wiki for Installation, Tutorials, and Documentation: https://github.com/codes-org/codes/wiki
### [Join our CODES user mailing list](https://mailchi.mp/75d0c8aa42c3/codes-user-group) to stay up to date with major changes, events, and news!

### New? Check out the [Wiki for Installation, Tutorials, and Documentation](https://github.com/codes-org/codes/wiki)

Discrete event driven simulation of HPC system architectures and subsystems has emerged as a productive and cost-effective means to evaluating potential HPC designs, along with capabilities for executing simulations of extreme scale systems. The goal of the CODES project is to use highly parallel simulation to explore the design of exascale storage/network architectures and distributed data-intensive science facilities.

Expand Down
15 changes: 15 additions & 0 deletions src/workload/methods/codes-online-comm-wrkld.C
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "nekbone_swm_user_code.h"
#include "nearest_neighbor_swm_user_code.h"
#include "all_to_one_swm_user_code.h"
#include "hacc_swm_user_code.h" //EMR

#define ALLREDUCE_SHORT_MSG_SIZE 2048

Expand Down Expand Up @@ -781,6 +782,11 @@ static void workload_caller(void * arg)
AllToOneSWMUserCode * incast_swm = static_cast<AllToOneSWMUserCode*>(sctx->swm_obj);
incast_swm->call();
}
else if(strcmp(sctx->workload_name, "hacc") == 0)
{
HACCSWMUserCode * hacc_swm = static_cast<HACCSWMUserCode*>(sctx->swm_obj);
hacc_swm->call();
}
}
static int comm_online_workload_load(const char * params, int app_id, int rank)
{
Expand Down Expand Up @@ -830,6 +836,10 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
{
path.append("/incast2.json");
}
else if(strcmp(o_params->workload_name, "hacc") == 0)
{
path.append("/hacc_workload.json");
}
else
tw_error(TW_LOC, "\n Undefined workload type %s ", o_params->workload_name);

Expand Down Expand Up @@ -864,6 +874,11 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
AllToOneSWMUserCode * incast_swm = new AllToOneSWMUserCode(root, generic_ptrs);
my_ctx->sctx.swm_obj = (void*)incast_swm;
}
else if(strcmp(o_params->workload_name, "hacc") == 0)
{
HACCSWMUserCode * hacc_swm = new HACCSWMUserCode(root, generic_ptrs);
my_ctx->sctx.swm_obj = (void*)hacc_swm;
}

if(global_prod_thread == NULL)
{
Expand Down