Commit f6a56435 authored by Misbah Mubarak's avatar Misbah Mubarak

adding topology test--> a simple test program to check cortex topology functions

parent 4e95e6be
......@@ -179,6 +179,7 @@ src_util_templates_lp_template_dummy_main_SOURCES = \
# get rid of annoying unused function in template
bin_PROGRAMS += src/workload/codes-workload-dump
bin_PROGRAMS += src/networks/topology-test
bin_PROGRAMS += src/network-workloads/model-net-mpi-replay
bin_PROGRAMS += src/network-workloads/model-net-dumpi-traces-dump
bin_PROGRAMS += src/network-workloads/model-net-synthetic
......@@ -197,7 +198,7 @@ src_network_workloads_model_net_mpi_replay_SOURCES = \
src_network_workloads_model_net_mpi_replay_CFLAGS = $(AM_CFLAGS)
src_network_workloads_model_net_synthetic_SOURCES = src/network-workloads/model-net-synthetic.c
src_network_workloads_model_net_synthetic_custom_dfly_SOURCES = src/network-workloads/model-net-synthetic-custom-dfly.c
src_networks_topology_test_SOURCES = src/networks/topology-test.c
#bin_PROGRAMS += src/network-workload/codes-nw-test
......
/* turning on track lp will generate a lot of output messages */
#include <ross.h>
#include <inttypes.h>
#include "codes/codes-workload.h"
#include "codes/codes.h"
#include <cortex/topology.h>
#include "codes/model-net.h"
int main(int argc, char** argv) {
int* net_ids;
int num_nets;
MPI_Init(&argc,&argv);
printf("\n %s ", argv[1]);
configuration_load(argv[1], MPI_COMM_WORLD, &config);
model_net_register();
net_ids = model_net_configure(&num_nets);
/* The topo argument is NULL since we are using global variables */
void * topo = NULL;
get_router_link_bandwidth(topo, 0, 1);
MPI_Finalize();
}
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