Skip to content
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

Bug in zeros function #719

Closed
glwagner opened this issue Mar 28, 2020 · 0 comments · Fixed by #720
Closed

Bug in zeros function #719

glwagner opened this issue Mar 28, 2020 · 0 comments · Fixed by #720
Labels
bug 🐞 Even a perfect program still has bugs

Comments

@glwagner
Copy link
Member

This line

https://github.com/climate-machine/Oceananigans.jl/blob/6502f078c8f7698a2fb6cd398d9e96cfacccc787/src/Fields/field.jl#L362

means that function calls like

zeros(GPU(), grid, other_args...)

return an array on the CPU.

@glwagner glwagner added the bug 🐞 Even a perfect program still has bugs label Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Even a perfect program still has bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant