Commit f859fa6b authored by Jonathan Jenkins's avatar Jonathan Jenkins

explicitly disable multi-app support in workloads

will enable on a one-by-one basis as the need arises (starting with dumpi)
parent 57314836
......@@ -15,6 +15,13 @@
#include "ross.h"
#include "codes/codes-workload.h"
#define APP_ID_UNSUPPORTED(id, name) \
if (id != 0) \
tw_error(TW_LOC,\
"APP IDs not supported for %s generator, 0 required", name);
struct codes_workload_method
{
char *method_name; /* name of the generator */
......
......@@ -114,6 +114,8 @@ static int darshan_io_workload_load(const char *params, int app_id, int rank)
struct rank_io_context *my_ctx;
int ret;
APP_ID_UNSUPPORTED(app_id, "darshan")
if (!d_params)
return -1;
......
......@@ -507,6 +507,8 @@ int dumpi_trace_nw_workload_load(const char* params, int app_id, int rank)
dumpi_trace_params* dumpi_params = (dumpi_trace_params*)params;
char file_name[MAX_LENGTH];
APP_ID_UNSUPPORTED(app_id, "dumpi")
if(rank >= dumpi_params->num_net_traces)
return -1;
......
......@@ -60,6 +60,8 @@ int iolang_io_workload_load(const char* params, int app_id, int rank)
int t = -1;
iolang_params* i_param = (struct iolang_params*)params;
APP_ID_UNSUPPORTED(app_id, "iolang")
/* we have to get the number of compute nodes/ranks from the bg/p model parameters
* because the number of ranks are specified in the iolang config file not the
* workload files */
......
......@@ -81,6 +81,8 @@ static int recorder_io_workload_load(const char *params, int app_id, int rank)
struct qhash_head *link = NULL;
struct file_entry *file;
APP_ID_UNSUPPORTED(app_id, "recorder")
int64_t nprocs = r_params->nprocs;
char *trace_dir = r_params->trace_dir_path;
if(!trace_dir)
......
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