-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
39 lines (29 loc) · 983 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include "macro.h"
#include "arrayArray.hpp"
#include "dataSet.h"
#include "readFile.hpp"
#include "callback.h"
#include "wrapper.hpp"
#include "athread_switch.h"
#include "callbackTest.h"
// #define NONZERONUM 19800
int main(int argc, char * argv[])
{
// 读取图/拓扑信息
label n_edge, n_vertex;
// label* row = readFile("./data/row_10KV", &n_edge);
// label* col = readFile("./data/col_10KV", &n_edge);
label* row = readFile("../../cpc_final_data/pre2_row.txt", &n_edge);
label* col = readFile("../../cpc_final_data/pre2_col.txt", &n_edge);
n_vertex = getVertexNum(row, col, n_edge);
printf("n_edge: %d, n_vertex: %d\n", n_edge, n_vertex);
// 调用测试函数
integration_test(row, col, n_edge, n_vertex);
spMV_test(row, col, n_edge, n_vertex);
compVisFlux_test(row, col, n_edge, n_vertex);
calcLudsFcc_test(row, col, n_edge, n_vertex);
return 0;
}