Commit bdaa22de authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

made a library out of modelnet_mpi_replay

parent 19f0446d
/*
* Copyright (C) 2017 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
#ifndef CODES_MPI_REPLAY_H
#define CODES_MPI_REPLAY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <mpi.h>
int modelnet_mpi_replay(MPI_Comm comm, int* argc, char*** argv );
#ifdef __cplusplus
}
#endif
#endif /* CODES_H */
/*
* Local variables:
* c-indent-level: 4
* c-basic-offset: 4
* End:
*
* vim: ft=c ts=8 sts=4 sw=4 expandtab
*/
lib_LTLIBRARIES += src/libcodes.la lib_LTLIBRARIES += src/libcodes.la src/libcodes_mpi_replay.la
BUILT_SOURCES += src/modelconfig/configparser.h \ BUILT_SOURCES += src/modelconfig/configparser.h \
src/modelconfig/configlex.h src/modelconfig/configlex.h
...@@ -95,6 +95,7 @@ nobase_include_HEADERS = \ ...@@ -95,6 +95,7 @@ nobase_include_HEADERS = \
codes/net/simplenet-upd.h \ codes/net/simplenet-upd.h \
codes/net/simplep2p.h \ codes/net/simplep2p.h \
codes/net/torus.h \ codes/net/torus.h \
codes/codes-mpi-replay.h \
codes/configfile.h codes/configfile.h
...@@ -161,6 +162,8 @@ src_libcodes_la_SOURCES = \ ...@@ -161,6 +162,8 @@ src_libcodes_la_SOURCES = \
src/networks/model-net/model-net-sched-impl.h \ src/networks/model-net/model-net-sched-impl.h \
src/networks/model-net/model-net-sched-impl.c src/networks/model-net/model-net-sched-impl.c
src_libcodes_mpi_replay_la_SOURCES = \
src/network-workloads/model-net-mpi-replay.c
#codes/codes-nw-workload.h #codes/codes-nw-workload.h
#src/network-workload/codes-nw-workload.c #src/network-workload/codes-nw-workload.c
...@@ -191,6 +194,7 @@ src_network_workloads_model_net_synthetic_slimfly_SOURCES = src/network-workload ...@@ -191,6 +194,7 @@ src_network_workloads_model_net_synthetic_slimfly_SOURCES = src/network-workload
src_network_workloads_model_net_mpi_replay_SOURCES = \ src_network_workloads_model_net_mpi_replay_SOURCES = \
src/network-workloads/model-net-mpi-replay.c \ src/network-workloads/model-net-mpi-replay.c \
src/network-workloads/model-net-mpi-replay-main.c src/network-workloads/model-net-mpi-replay-main.c
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_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_network_workloads_model_net_synthetic_custom_dfly_SOURCES = src/network-workloads/model-net-synthetic-custom-dfly.c
......
...@@ -4,9 +4,7 @@ ...@@ -4,9 +4,7 @@
* *
*/ */
#include <mpi.h> #include <mpi.h>
#include "codes/codes-mpi-replay.h"
int modelnet_mpi_replay(MPI_Comm comm, int* argc, char*** argv);
int main(int argc, char** argv) { int main(int argc, char** argv) {
......
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