adding const to variable to comply with google code convention...
may need to change more stuff though. Taint what else do you mean? Spaces, tabs, names?
This commit is contained in:
@@ -34,4 +34,4 @@ $(MPIBIN) :
|
||||
$(MPICXX) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.cpp %.o %.c, $^)
|
||||
|
||||
clean:
|
||||
$(RM) $(BIN) $(MPIBIN) *~ ../src/*~
|
||||
$(RM) $(OBJ) $(BIN) $(MPIBIN) *~ ../src/*~
|
||||
|
||||
@@ -62,8 +62,8 @@ inline void TestBcast(size_t n, int root) {
|
||||
utils::Check(res == s, "[%d] TestBcast fail", rank);
|
||||
}
|
||||
|
||||
// ugly stuff, just to see if it works
|
||||
inline void record(test::Mock& mock, int rank) {
|
||||
// ugly stuff, just to see if it works. To be removed
|
||||
inline void Record(test::Mock& mock, const int rank) {
|
||||
switch(rank) {
|
||||
case 0:
|
||||
mock.OnAllReduce(0, false);
|
||||
@@ -77,12 +77,6 @@ inline void record(test::Mock& mock, int rank) {
|
||||
}
|
||||
}
|
||||
|
||||
// to be removed, should be added in engine tcp
|
||||
inline void replay(test::Mock& mock, int rank) {
|
||||
printf("[%d] All reduce %d\n", rank, mock.AllReduce(rank));
|
||||
printf("[%d] All reduce %d\n", rank, mock.AllReduce(rank));
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc < 2) {
|
||||
printf("Usage: <ndata>\n");
|
||||
@@ -95,14 +89,11 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
#ifdef TEST
|
||||
test::Mock mock;
|
||||
record(mock, rank);
|
||||
Record(mock, rank);
|
||||
mock.Replay();
|
||||
//replay(mock, rank);
|
||||
sync::SetMock(mock);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
printf("[%d] start at %s\n", rank, name.c_str());
|
||||
TestMax(n);
|
||||
printf("[%d] TestMax pass\n", rank);
|
||||
|
||||
Reference in New Issue
Block a user