-
Notifications
You must be signed in to change notification settings - Fork 0
[wip] full pagerank #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 23 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c195f0c
feat: add deps
suvorovrain d4d94bb
feat: add input data
suvorovrain 6a2fe26
feat: add custom types in main.c + change matrices type from bool to …
suvorovrain 23147e1
fix: change data matrices types
suvorovrain c57ce63
feat: add template for data initialization
suvorovrain e8d7d5a
feat: update example
suvorovrain f741400
refactor: change input type
suvorovrain 05fae16
feat: implement user filtration
suvorovrain cbba464
feat: reduce cards for filtered users
suvorovrain 0fcc85c
feat: add transactions filter
suvorovrain 3903d98
feat: update example image
suvorovrain 7099c6a
feat: [wip] pagerank matrix preparation
suvorovrain d09ada0
feat: implement fully working pagerank algoithm
suvorovrain abf7b38
refactor: get rid of if-err-!=-nil-driven-development
suvorovrain 9c2bf0e
refactor: remove dead code and debug prints
suvorovrain d168c56
feat: add payment system filter
suvorovrain e31704c
feat: provide more detailed information about errors
suvorovrain 5e09f05
refactor: consistent enum\struct naming style
suvorovrain 2986074
refactor: make owns mat grb_bool type
suvorovrain 6e068cd
refactor: move out main algorithm logic from main functiom
suvorovrain 6361d78
feat: implement simple pagerank without teleportations
suvorovrain 73220c3
fix: move mask from add to mxm in final pagerank matrix building
suvorovrain efddbba
fix: memory leaks
suvorovrain 363979f
refactor: rename functions
suvorovrain bf4eb8b
fix: pagerank fixes
suvorovrain e36c3fe
fix: use selecet instead of apply in user filtering
suvorovrain 9b5962f
feat: now use select instead of apply in card filtering
suvorovrain fd51cd4
refactor: better filtering
suvorovrain 6edbed0
fix: remove lagraph. fix binops
suvorovrain 3090f65
refactor: provide more comments
suvorovrain 9d38f66
refactor: remove lagraph from build system
suvorovrain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [submodule "vendor/GraphBLAS"] | ||
| path = vendor/GraphBLAS | ||
| url = https://github.com/DrTimothyAldenDavis/GraphBLAS.git | ||
| [submodule "vendor/LAGraph"] | ||
| path = vendor/LAGraph | ||
| url = https://github.com/GraphBLAS/LAGraph.git | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| LIBPATH := $(shell dirname "$(realpath "$(lastword $(MAKEFILE_LIST))")") | ||
| GRAPH_BLAS_PATH := $(LIBPATH)/vendor/GraphBLAS | ||
| LAGRAPH_PATH := $(LIBPATH)/vendor/LAGraph | ||
| BUILD := $(GRAPH_BLAS_PATH)/build | ||
| LAGRAPH_BUILD := $(LAGRAPH_PATH)/build | ||
gsvgit marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| JOBS := $(shell nproc) | ||
|
|
||
| build: graphblas lagraph src | ||
| graphblas: | ||
| mkdir -p $(BUILD) && \ | ||
| cd $(GRAPH_BLAS_PATH) &&\ | ||
| cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -G Ninja -B build | ||
| cmake --build $(BUILD) --parallel $(JOBS) | ||
|
|
||
| lagraph: | ||
| mkdir -p $(LAGRAPH_BUILD) && \ | ||
| cd $(LAGRAPH_PATH) && \ | ||
| cmake -DGraphBLAS_DIR=$(BUILD) \ | ||
| -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -G Ninja -B build | ||
| cmake --build $(LAGRAPH_BUILD) --parallel $(JOBS) | ||
|
|
||
| clean: | ||
| rm -rf $(BUILD)/* $(LAGRAPH_BUILD)/* ./build | ||
| src: | ||
| mkdir -p build | ||
| gcc src/main.c -I./vendor/GraphBLAS/Include -I./vendor/LAGraph/include -L./vendor/LAGraph/build/src -L./vendor/GraphBLAS/build -llagraph -lgraphblas -lm -o build/main | ||
|
|
||
| .PHONY: all build lagraph clean src | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.