Multiverso/Test/main.cpp

26 строки
650 B
C++
Исходник Обычный вид История

2016-08-15 05:23:12 +03:00
#include "common.h"
2016-02-02 15:40:07 +03:00
2016-08-15 05:23:12 +03:00
#include <string.h>
#include <stdio.h>
2016-02-29 09:27:59 +03:00
2016-08-15 05:23:12 +03:00
using namespace multiverso::test;
2016-02-02 15:40:07 +03:00
2016-08-15 05:23:12 +03:00
void PrintUsage() {
printf("Usage: multiverso.test kv|array|net|matrix|allreduce\n");
2016-04-21 06:30:47 +03:00
}
2016-04-17 14:56:58 +03:00
2016-02-02 15:40:07 +03:00
int main(int argc, char* argv[]) {
2016-08-15 05:23:12 +03:00
if (argc != 2) PrintUsage();
else {
if (strcmp(argv[1], "kv") == 0) TestKV(argc, argv);
else if (strcmp(argv[1], "array") == 0) TestArray(argc, argv);
else if (strcmp(argv[1], "net") == 0) TestNet(argc, argv);
else if (strcmp(argv[1], "matrix") == 0) TestMatrix(argc, argv);
2016-04-17 14:56:58 +03:00
else if (strcmp(argv[1], "allreduce") == 0) TestAllreduce(argc, argv);
2016-08-15 05:23:12 +03:00
else {
PrintUsage();
}
}
2016-02-02 15:40:07 +03:00
return 0;
2016-02-26 09:36:38 +03:00
}