-
Notifications
You must be signed in to change notification settings - Fork 5
Mooncake testsuite refactor #175
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
Open
lkdvos
wants to merge
23
commits into
main
Choose a base branch
from
ld-mooncaketests
base: main
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
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c69b57b
small refactor QR pullback
lkdvos 734f390
testsuite reorganisation
lkdvos 023cfed
add QR mooncake tests
lkdvos 159da4d
Genius suggestion by @Jutho fixes everything
lkdvos deda605
Refactor Mooncake LQ tests
lkdvos 98c9fc0
Refactor Mooncake Eig tests
lkdvos 64a4246
fix pullback implementations!
lkdvos 8b209c2
Refactor Mooncake SVD tests
lkdvos f8d7cc6
Refactor Mooncake Polar tests
lkdvos 552559f
make testsets verbose
lkdvos 9161bde
Refactor Mooncake OrthNull tests
lkdvos 6550d8b
clean up
lkdvos b3329de
rename `call_and_zero!`
lkdvos 61e8061
move gauge dependence removal to ad_utils again
lkdvos 0de37f0
separate out mooncake tests
lkdvos 2238bf8
Update src/pullbacks/qr.jl
lkdvos 7dd64c8
move functions to ad_utils
lkdvos 81d9d42
more ad_setup usage
lkdvos bb4076d
add back rank_deficient tests
lkdvos c7dadcd
clean up QR/LQ pullbacks
lkdvos a140eda
add back `trunctol` tests
lkdvos 4afc992
more more ad_setup usage + chainrules simplification
lkdvos fa33e57
make qr/lq gauge dependence also fix R/L
lkdvos 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
Some comments aren't visible on the classic Files Changed page.
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
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 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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_eig(T, (m, m); atol = m * m * TestSuite.precision(T), rtol = m * m * TestSuite.precision(T)) | ||
| end | ||
| end |
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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_eigh(T, (m, m); atol = m * m * TestSuite.precision(T), rtol = m * m * TestSuite.precision(T)) | ||
| end | ||
| end |
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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...), n in (17, m, 23) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_lq(T, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T)) | ||
| end | ||
| end |
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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...), n in (17, m, 23) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_orthnull(T, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T)) | ||
| end | ||
| end |
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,21 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...), n in (17, m, 23) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| atol = rtol = m * n * TestSuite.precision(T) | ||
| m >= n && TestSuite.test_mooncake_left_polar(T, (m, n); atol, rtol) | ||
| n >= m && TestSuite.test_mooncake_right_polar(T, (m, n); atol, rtol) | ||
| end | ||
| end |
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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...), n in (17, m, 23) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_qr(T, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T)) | ||
| end | ||
| end |
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,19 @@ | ||
| using MatrixAlgebraKit | ||
| using Test | ||
| using LinearAlgebra: Diagonal | ||
| using CUDA, AMDGPU | ||
|
|
||
| BLASFloats = (Float32, ComplexF64) # full suite is too expensive on CI | ||
| GenericFloats = () | ||
| @isdefined(TestSuite) || include("../testsuite/TestSuite.jl") | ||
| using .TestSuite | ||
|
|
||
| is_buildkite = get(ENV, "BUILDKITE", "false") == "true" | ||
|
|
||
| m = 19 | ||
| for T in (BLASFloats..., GenericFloats...), n in (17, m, 23) | ||
| TestSuite.seed_rng!(123) | ||
| if !is_buildkite | ||
| TestSuite.test_mooncake_svd(T, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T)) | ||
| end | ||
| end |
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.
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.