File tree Expand file tree Collapse file tree 9 files changed +57
-7
lines changed Expand file tree Collapse file tree 9 files changed +57
-7
lines changed Original file line number Diff line number Diff line change 1+ build
Original file line number Diff line number Diff line change @@ -5,24 +5,29 @@ BUILD := $(GRAPH_BLAS_PATH)/build
55LAGRAPH_BUILD := $(LAGRAPH_PATH ) /build
66JOBS := $(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
2426clean :
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
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 1+ %%MatrixMarket matrix coordinate pattern general
2+ %%GraphBLAS type bool
3+ 9 9 3
4+ 1 4
5+ 1 3
6+ 3 4
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments