-
Notifications
You must be signed in to change notification settings - Fork 4
Update: GPU knn BVH search for irregular grid #56
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 all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1fa1967
update: replace hashgrid search with LBVH for cuda knn to improve irr…
chaseshyu 158094c
update: reformat remeshing message for interpolation
chaseshyu 3328ff1
update: change knn-bvh submodule URL to GeoFLAC repository
chaseshyu 3b793ca
update: comment out unused create_neighbor calls to optimize initiali…
chaseshyu c6f5699
update: add GPU memory usage logging during remeshing process
chaseshyu 90204f5
update: add nvc build badge to README
chaseshyu 52aab29
bugfix: fix git safe directory in nvc CI workflow
chaseshyu e8ad185
bugfix: specify SM parameter for openacc builds in nvc CI workflow
chaseshyu 6534658
bugfix: fix logging output in marker replenish to display correct new…
chaseshyu bc55e6a
bugfix: remove unused variable 'resoTimes' in nearest neighbor interp…
chaseshyu 9796c6e
update: rename DEVELOPING to DEVELOPING.md
chaseshyu 62a0e4f
update: improve submodule handling and OpenACC build process in Makef…
chaseshyu 96fb15b
bugfix: move constructor initialization to correct order to eliminate…
chaseshyu 090a848
bugfix: fix misleading indent of fflush(stdout)
chaseshyu 913708f
feature: add Docker build and push workflow with CUDA Dockerfile
chaseshyu 70dd432
update: upgrade NVHPC version in Dockerfile from multi to 12.9 and re…
chaseshyu 398e933
update: add concurrency nvc build workflow setting and caching for Do…
chaseshyu bbb9f71
feature: add matrix strategy for building multiple OpenACC targets in…
chaseshyu 468c6d0
bugfix: add check for open PRs to skip duplicate CI runs on push events.
chaseshyu a6a8f78
update: refactor build steps in nvc-build workflow for clarity and ef…
chaseshyu 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
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,4 @@ | ||
| [submodule "knn-bvh"] | ||
| path = knn-bvh | ||
| url = https://github.com/GeoFLAC/knn-bvh.git | ||
| ignore = dirty |
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
| # Development Notes | ||
|
|
||
| The main repository is on: | ||
| https://github.com/GeoFLAC/DynEarthSol | ||
|
|
||
| To get the most timely progress, using Github: | ||
| git clone https://github.com/GeoFLAC/DynEarthSol.git | ||
|
|
||
| ## To-do list: | ||
|
|
||
| High priority: | ||
| * Simple benchmarks for rheology | ||
| * Local remeshing | ||
| * Different init_marker_spacing in regions | ||
|
|
||
| Low priority: | ||
| * Save output as vtk format directly | ||
| * Stress BC, esp no-stress sidewall | ||
| * Heatflux BC | ||
| * Frictional heating | ||
| * Adiabatic cooling (adiabatic temperature profile) | ||
| * Internal heating | ||
| * Volume changed induced stress | ||
|
|
||
|
|
||
| ## Design notes: | ||
|
|
||
| * Avoid C++ stream for bulk output, as stream is slower than C-style IO. | ||
| * Avoid creating/destroying objects in inner for-loops. | ||
| * Avoid static variables and global variables. | ||
| * Meaning of error codes: | ||
| 1: User input error | ||
| 2: IO error | ||
| 10: Triangulation/tetrahedralization error | ||
| 11: Runtime error | ||
| 12: Assertion error (due to programming) | ||
|
|
||
| ## Git Submodule Workflow | ||
|
|
||
| Since this repository relies on Git submodules (e.g., `knn-bvh`), your development workflow needs to account for them. Submodules are essentially pointers to specific commits in other repositories. | ||
|
|
||
| **1. Pulling the latest changes:** | ||
| When you pull updates from the main repository, Git does not automatically update the submodule contents by default. To fetch and update everything in one command, use: | ||
| ```bash | ||
| git pull --recurse-submodules | ||
| ``` | ||
| *(If you simply ran `git pull` and notice your submodules are out of sync, you can fix it by running `git submodule update`.)* | ||
|
|
||
| **2. Modifying a submodule:** | ||
| By default, submodules are in a "detached HEAD" state. If you need to modify the code inside a submodule: | ||
| 1. `cd` into the submodule directory. | ||
| 2. Checkout the appropriate branch (e.g., `git checkout main`). | ||
| 3. Make your changes, `git add`, `git commit`, and `git push` from **within** the submodule directory. | ||
| 4. `cd` back to the main repository root. The main repo will now see that the submodule pointer has changed. | ||
| 5. `git add` the submodule directory and commit this pointer update to the main repository. |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$(KNN_BVH_LIB)is only set whenopenacc=1, but this unconditional rule still expands to a target even when the variable is empty (effectively creating a rule for:). Wrap this rule in the sameifeq ($(openacc), 1)guard (or giveKNN_BVH_LIBa safe default) so non-OpenACC builds don't get an invalid/unintended make rule.