-
Notifications
You must be signed in to change notification settings - Fork 88
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
Half precision support #1257
Open
yhmtsai
wants to merge
62
commits into
develop
Choose a base branch
from
half
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Half precision support #1257
Conversation
This file contains 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
ginkgo-bot
added
mod:all
This touches all Ginkgo modules.
reg:benchmarking
This is related to benchmarking.
reg:build
This is related to the build system.
reg:example
This is related to the examples.
reg:testing
This is related to testing.
type:factorization
This is related to the Factorizations
type:matrix-format
This is related to the Matrix formats
type:multigrid
This is related to multigrid
type:preconditioner
This is related to the preconditioners
type:solver
This is related to the solvers
type:stopping-criteria
This is related to the stopping criteria
labels
Jan 12, 2023
I would suggest putting all the todos into separate PRs. Having it compile and run in the first PR is IMO already enough. You could create a github project to track the rest of the todo. |
9 tasks
SonarCloud Quality Gate failed. 2 Bugs |
yhmtsai
force-pushed
the
half
branch
2 times, most recently
from
June 18, 2023 22:35
ade5e58
to
8a6d5fb
Compare
yhmtsai
added
1:ST:ready-for-review
This PR is ready for review
and removed
1:ST:WIP
This PR is a work in progress. Not ready for review.
labels
Jun 19, 2023
Note: the issue is that numerical_limits<half>::infinite returns float instead of half. Maybe changing that would be a better solution
- use Csr in residual norm for half apply support - use higher tolerance for mc64 due to half range - some example can not finish in half precision for mc64 - skip some test in half due to half range - fix the half limit value Co-authored-by: Marcel Koch <[email protected]>
Co-authored-by: Marcel Koch <[email protected]> Co-authored-by: Thomas Grützmacher <[email protected]>
Co-authored-by: Thomas Grützmacher <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1:ST:ready-for-review
This PR is ready for review
1:ST:run-full-test
mod:all
This touches all Ginkgo modules.
reg:benchmarking
This is related to benchmarking.
reg:build
This is related to the build system.
reg:example
This is related to the examples.
reg:testing
This is related to testing.
type:factorization
This is related to the Factorizations
type:matrix-format
This is related to the Matrix formats
type:multigrid
This is related to multigrid
type:preconditioner
This is related to the preconditioners
type:solver
This is related to the solvers
type:stopping-criteria
This is related to the stopping criteria
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.
It adds the half (fp16) into ginkgo.
Some related collection:
Cuda 9.2__half
does not contain+=
. (I think it can be added by more operator overload outside)ROCm 4.0 can not convert
__half
todouble
. (I do not think it can be added outside?)I will disable
half
support for these two version.There are two additional commit: one is fixing oneAPI6 (#1251) and the other is multigrid experiments.
They will be cleaned afterwards.
The following PR is related to half:
Discussion:
Do we still need to use float2half from vendor in gko::half?
Some fixes are extracted from this pr to #1253
TODO:
change the IDR without halfwhen running curand/hiprand, throws the erroronly test the double <-> floator to wait the thrust<__half>Closes #73