Skip to content

Commit 056bd88

Browse files
committed
Preprocessor flags setting net implementation and enabling perf metrics are now passed via chimbuko_config.h rather than the command line
1 parent 5441920 commit 056bd88

64 files changed

Lines changed: 64 additions & 42 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/hpserver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//The hierarchical parameter server main program. This program collects statistics from the node-instances of the anomaly detector
2+
#include <chimbuko_config.h>
23
#ifndef _USE_ZMQNET
34
#include<iostream>
45
#warning "Hierarchical parameter server requires ZMQNet"

configure.ac

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ fi
101101
PS_FLAGS=
102102
AC_ARG_WITH([network], AS_HELP_STRING([--with-network], [Specify network layer: MPI or ZMQ]),[],[with_network=no])
103103
if test "x$with_network" = "xMPI"; then
104-
#AC_DEFINE([_USE_MPINET],[1],[Use MPI network layer])
105-
PS_FLAGS+=" -D_USE_MPINET"
104+
AC_DEFINE([_USE_MPINET],[1],[Use MPI network layer])
106105
elif test "x$with_network" = "xZMQ"; then
107-
#AC_DEFINE([_USE_ZMQNET],[1],[Use ZMQ network layer])
108-
PS_FLAGS+=" -D_USE_ZMQNET"
106+
AC_DEFINE([_USE_ZMQNET],[1],[Use ZMQ network layer])
109107
AC_CHECK_LIB([zmq], [zmq_close], [],
110108
[AC_MSG_FAILURE([Could not link to 0MQ])])
111109
else
@@ -139,8 +137,7 @@ fi
139137

140138

141139
#Enable performance metrics dump
142-
#AC_ARG_WITH([perf-metric], AS_HELP_STRING([--with-perf-metric], [Specify use of performance metrics]),[AC_DEFINE([_PERF_METRIC],[1],[Use performance metrics])],[])
143-
AC_ARG_WITH([perf-metric], AS_HELP_STRING([--with-perf-metric], [Specify use of performance metrics]),[PS_FLAGS+=" -D_PERF_METRIC"],[])
140+
AC_ARG_WITH([perf-metric], AS_HELP_STRING([--with-perf-metric], [Specify use of performance metrics]),[AC_DEFINE([_PERF_METRIC],[1],[Use performance metrics])],[])
144141

145142
#Enable ProvdDB margo state dump (currently requires master branch of margo)
146143
AC_ARG_ENABLE([margo-state-dump],

include/chimbuko/ad/ADAnomalyProvenance.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
2+
#include <chimbuko_config.h>
33
#include <chimbuko/ad/ADEvent.hpp>
44
#include <chimbuko/param.hpp>
55
#include "chimbuko/ad/ADCounter.hpp"

include/chimbuko/ad/ADCounter.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include <chimbuko_config.h>
23
#include "chimbuko/ad/ADDefine.hpp"
34
#include "chimbuko/ad/ExecData.hpp"
45
#include "chimbuko/util/map.hpp"

include/chimbuko/ad/ADDefine.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include <chimbuko_config.h>
23
#include <climits>
34

45
/*! \file ADDefine.hpp

include/chimbuko/ad/ADEvent.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include <chimbuko_config.h>
23
#include "chimbuko/ad/ADDefine.hpp"
34
#include "chimbuko/ad/ExecData.hpp"
45
#include "chimbuko/ad/ADMetadataParser.hpp"

include/chimbuko/ad/ADLocalCounterStatistics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
2+
#include <chimbuko_config.h>
33
#include<unordered_set>
44
#include <chimbuko/ad/ADNetClient.hpp>
55
#include <chimbuko/ad/ADEvent.hpp>

include/chimbuko/ad/ADLocalFuncStatistics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
2+
#include <chimbuko_config.h>
33
#include <chimbuko/ad/ADNetClient.hpp>
44
#include <chimbuko/ad/ADEvent.hpp>
55
#include <chimbuko/ad/AnomalyData.hpp>

include/chimbuko/ad/ADMetadataParser.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
32
#include<chimbuko_config.h>
43
#include<chimbuko/ad/ExecData.hpp>
54
#include<unordered_map>

include/chimbuko/ad/ADNetClient.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
32
#include <chimbuko_config.h>
43
#ifdef _USE_MPINET
54
#include "chimbuko/net/mpi_net.hpp"

0 commit comments

Comments
 (0)