Repository navigation
Add Portable MatrixFree initialization for GPU builds - #1378
Open
kobayashi1109 wants to merge 2 commits into
Open
kobayashi1109 wants to merge 2 commits into
kobayashi1109 wants to merge 2 commits into
Conversation
fractalsbyx
self-requested a review
October 1, 2026 18:38
fractalsbyx
force-pushed
the
portable-matrixfree-manager
branch
from
October 1, 2026 22:18
d0b85a7 to
2c0bbfe
Compare
Contributor
|
The branch you worked on was 5 months old, so I had to rebase. |
Author
|
Oh, I'm sorry.
I will check that
2026年10月1日(木) 18:20 Xander ***@***.***>:
… *fractalsbyx* left a comment (prisms-center/phaseField#1378)
<#1378 (comment)>
The branch you worked on was 5 months old, so I had to rebase.
—
Reply to this email directly, view it on GitHub
<#1378?email_source=notifications&email_token=CODLILOR4PTOH7WQSAIEK6D5R3KC5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJUGE4DCMJZGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5941811905>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CODLILPTFI3NCJABXWXE36T5R3KC5AVCNFSNUABEKJSXA33TNF2G64TZHMZDENRQGIZTENZ3JFZXG5LFHM2TMNJQGQZTCNRQHCQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CODLILLQYEQCFR5LANTRHT35R3KC5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJUGE4DCMJZGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/CODLILINMDTN2Y6KJ5T4J4L5R3KC5A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJUGE4DCMJZGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds the initial
dealii::Portable::MatrixFreedata structuresrequired for the GPU implementation of PRISMS-PF.
For GPU builds, Portable MatrixFree objects are created for each field
and each mesh level and initialized using the existing mapping,
DoFHandler, constraints, quadrature, and update flags.
This work corresponds to the "Define a Portable::MatrixFree object for
GPU data" step and is part of #517.
Validation
The changes were tested on a Tesla V100 with CUDA 12.0 and deal.II 9.6.
PRISMS_PF_GPU=ON.objects have the expected DoF counts and valid partitioner sizes.
The temporary assertions were removed after validation.
Current limitation
This PR only prepares and initializes the Portable MatrixFree data
structures.
The actual matrix-free operator still uses the existing regular
dealii::MatrixFreepath. Therefore, the successful Laplace run doesnot yet mean that the Laplace operator itself is executed on the GPU.
Connecting the Portable MatrixFree objects to the operator and using
dealii::Portable::FEEvaluationwill be handled in a subsequent change.