Commit e220ef21 authored by Philip Carns's avatar Philip Carns

Kevin's configuration updates from CODES repo

parent 5bbe5fbc
...@@ -165,7 +165,7 @@ void model_net_add_lp_type(int net_id) ...@@ -165,7 +165,7 @@ void model_net_add_lp_type(int net_id)
lp_type_register("modelnet_simplenet", model_net_get_lp_type(net_id)); lp_type_register("modelnet_simplenet", model_net_get_lp_type(net_id));
break; break;
DEFAULT: default:
{ {
printf("\n Invalid net_id specified "); printf("\n Invalid net_id specified ");
exit(-1); exit(-1);
......
...@@ -156,7 +156,7 @@ int main( ...@@ -156,7 +156,7 @@ int main(
{ {
printf("\n Usage: mpirun <args> --sync=2/3 mapping_file_name.conf"); printf("\n Usage: mpirun <args> --sync=2/3 mapping_file_name.conf");
MPI_Finalize(); MPI_Finalize();
return; return 0;
} }
MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs); MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
...@@ -170,7 +170,9 @@ int main( ...@@ -170,7 +170,9 @@ int main(
model_net_add_lp_type(net_id); model_net_add_lp_type(net_id);
svr_add_lp_type(); svr_add_lp_type();
codes_mapping_setup(argv[2]); configuration_load(argv[2], MPI_COMM_WORLD, &config);
codes_mapping_setup();
g_tw_mapping=CUSTOM; g_tw_mapping=CUSTOM;
g_tw_custom_initial_mapping=&codes_mapping_init; g_tw_custom_initial_mapping=&codes_mapping_init;
g_tw_custom_lp_global_to_local_map=&codes_mapping_to_lp; g_tw_custom_lp_global_to_local_map=&codes_mapping_to_lp;
......
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