Skip to content

Commit d4d94bb

Browse files
committed
feat: add input data
1 parent c195f0c commit d4d94bb

File tree

9 files changed

+57
-7
lines changed

9 files changed

+57
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,29 @@ BUILD := $(GRAPH_BLAS_PATH)/build
55
LAGRAPH_BUILD := $(LAGRAPH_PATH)/build
66
JOBS := $(shell nproc)
77

8-
all: build lagraph
9-
build: $(BUILD)
10-
cd $(GRAPH_BLAS_PATH) && \
8+
build: graphblas lagraph src
9+
graphblas:
10+
mkdir -p $(BUILD) && \
11+
cd $(GRAPH_BLAS_PATH) &&\
1112
cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
1213
-DCMAKE_BUILD_TYPE=Release \
1314
-G Ninja -B build
1415
cmake --build $(BUILD) --parallel $(JOBS)
1516

16-
lagraph: $(LAGRAPH_BUILD)
17-
cd $(LAGRAPH_PATH) && \
17+
lagraph:
18+
mkdir -p $(LAGRAPH_BUILD) && \
19+
cd $(LAGRAPH_PATH) && \
1820
cmake -DGraphBLAS_DIR=$(BUILD) \
1921
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
2022
-DCMAKE_BUILD_TYPE=Release \
2123
-G Ninja -B build
2224
cmake --build $(LAGRAPH_BUILD) --parallel $(JOBS)
2325

2426
clean:
25-
rm -rf $(BUILD) $(LAGRAPH_BUILD)
27+
rm -rf $(BUILD)/* $(LAGRAPH_BUILD)/* ./build
28+
src:
29+
mkdir -p build
30+
gcc src/main.c -I./vendor/GraphBLAS/Include -I./vendor/LAGraph/include -L./vendor/LAGraph/build/src -L./vendor/GraphBLAS/build -llagraph -lgraphblas -o build/main
2631

27-
.PHONY: all build lagraph clean
32+
.PHONY: all build lagraph clean src
2833

data/minimal_demo/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This example contatins the following graph:
2+
![alt text](image.png)
3+
4+
`.mat` files is a edges decomposition of the graph above.
5+
`.txt` file contain map from every node to its type.
6+

data/minimal_demo/graph/call.mtx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
%%MatrixMarket matrix coordinate pattern general
2+
%%GraphBLAS type bool
3+
9 9 3
4+
1 4
5+
1 3
6+
3 4

data/minimal_demo/graph/owns.mtx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
%%MatrixMarket matrix coordinate pattern general
2+
%%GraphBLAS type bool
3+
9 9 5
4+
1 9
5+
2 7
6+
2 8
7+
3 6
8+
4 5
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
%%MatrixMarket matrix coordinate pattern general
2+
%%GraphBLAS type bool
3+
9 9 4
4+
5 6
5+
5 9
6+
6 7
7+
6 9
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
1 User
2+
2 User
3+
3 User
4+
4 User
5+
5 Card
6+
6 Card
7+
7 Card
8+
8 Card
9+
9 Card

data/minimal_demo/image.png

90.4 KB
Loading

src/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdio.h>
2+
#include "../vendor/GraphBLAS/Include/GraphBLAS.h"
3+
#include "../vendor/LAGraph/include/LAGraph.h"
4+
5+
int main()
6+
{
7+
printf("Helllo, World!\n");
8+
}

0 commit comments

Comments
 (0)