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

Warning when user wants MultiLayerQG on the GPU #208

Merged
merged 2 commits into from
Mar 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/multilayerqg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ function Problem(nlayers::Int, # number of fluid layers
linear = false,
T = Float64)

if dev == GPU()
@warn """MultiLayerQG module not well optimized on the GPU yet.
See issue on Github at https://github.com/FourierFlows/GeophysicalFlows.jl/issues/112.
For now, we suggest running MultiLayerQG on CPUs only."""
end

# topographic PV
eta === nothing && (eta = zeros(dev, T, (nx, ny)))

Expand Down