-
Notifications
You must be signed in to change notification settings - Fork 19
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
add TOA and surface radiation diagnostics #2579
Conversation
e15526c
to
11a94d7
Compare
The issue is with saving the value on the accumulator.
It might be because there's two nested views. |
Minumum breaking example: using CUDA
A = CuArray(reshape(1:16, 4, 4))
copy(view(reshape(view(A, 1:3, :), 3, 4), 3, :, :)) |
As a workaround, I will change to |
5632fbc
to
f7e9d49
Compare
src/solver/type_getters.jl
Outdated
@@ -958,8 +958,14 @@ function get_simulation(config::AtmosConfig) | |||
) | |||
else | |||
# Add to the accumulator | |||
|
|||
# We use similar + .= instead of copy because of a bug in CUDA.jl 5.2.0 |
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.
Can you please provide a link to the issue?
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.
There's no issue yet, I asked on slack #gpu, if someone confirms that this is a problem, I will open the issue.
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 was pointed out to this JuliaGPU/Adapt.jl#21 with the following comments:
because of how Julia works, it's tricky to define GPU-accelerated functions for nested array wrappers, so this is triggering fallback functionality from Base
this would need a change in Base, or a more radical type system change, to make this easier. alternatively, relying more on unified memory would make the fallbacks work better, which is probably what we're going to do instead.
That's not the issue:
The error in the log is:
It's related to scalar indexing, which is not allowed on the gpu. |
Ops, I miscopied! The
|
f7e9d49
to
d5e990e
Compare
22353ea
to
3c88ba4
Compare
3c88ba4
to
492513d
Compare
Purpose
Closes #2578
Also cleans up diagnostics for slab ocean experiments
To-do
Content