From 994535da60ffb7cd2aa90f15510523d2b887e0d6 Mon Sep 17 00:00:00 2001 From: Navid Constantinou Date: Sun, 7 Mar 2021 09:15:18 +1100 Subject: [PATCH 1/2] adds warning when user wants MultiLayerQG on GPU --- src/multilayerqg.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/multilayerqg.jl b/src/multilayerqg.jl index 1d854bb8..56c2ea01 100644 --- a/src/multilayerqg.jl +++ b/src/multilayerqg.jl @@ -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 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))) From b1394b4f178baac40c23e7ac724149015c833172 Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Sun, 7 Mar 2021 09:21:42 +1100 Subject: [PATCH 2/2] better phrasing --- src/multilayerqg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multilayerqg.jl b/src/multilayerqg.jl index 56c2ea01..594c6847 100644 --- a/src/multilayerqg.jl +++ b/src/multilayerqg.jl @@ -61,7 +61,7 @@ function Problem(nlayers::Int, # number of fluid layers if dev == GPU() @warn """MultiLayerQG module not well optimized on the GPU yet. - See https://github.com/FourierFlows/GeophysicalFlows.jl/issues/112 + See issue on Github at https://github.com/FourierFlows/GeophysicalFlows.jl/issues/112. For now, we suggest running MultiLayerQG on CPUs only.""" end