-
Notifications
You must be signed in to change notification settings - Fork 89
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
RFC: add GPU testing #646
RFC: add GPU testing #646
Conversation
603dd88
to
468b7fd
Compare
Expr(:block, ex, Expr(:macrocall, Symbol("@test_broken"), __source__, ex2)) |> esc | ||
else | ||
Expr(:block, ex, Expr(:macrocall, Symbol("@test"), __source__, ex2)) |> esc | ||
# NB this @test should report a line number in your tests, not here. |
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.
we really need to document how to make macros do that.
Here is one of the ways
https://github.com/JuliaLogging/LoggingExtras.jl/blob/be221f3147856a7fb2c2dcbd8ea202610a65725d/src/verbosity.jl#L1-L11
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.
I like this. Once you attend to the remaining things, I think this can be merged
@mcabbott is there a reason why a release wasn't registered after merging this PR or was it an oversight? |
No strong reason! It doesn't change any functionality, only testing, maybe that's why. |
The PR bumped the minor version though. Should we then make a release with that minor version or save it for the next release? |
Since this is blocking 2 releases, I'm going to assume the version bump was intentional and release a new version. |
This wants to start adding GPU tests...
JLArray
from New package: JLArrays v0.1.0 JuliaRegistries/General#64443 so that this can run on github actions / random laptops.@gpu
in front oftest_rrule(sum, rand(3))
expands to first run the test as before, then check the GPU result. No attempt is made to run all the tests this way.Xref #617 -- note that there is now GPUArraysCore.jl, so CR can use
@allowscalar
, and dispatch onAbstractGPUArray
, without loading anything heavy.Xref #645 -- that particular rule needs to be re-written, marked broken here.