Skip to content

Commit

Permalink
Merge pull request #282 from FourierFlows/ncc/use-latest-cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy authored Jan 28, 2022
2 parents bf855f8 + 5ee8f72 commit 43571d6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
CUDA = "^1, ^2.4.2, 3.0.0 - 3.3.6"
CUDA = "^1, ^2.4.2, 3.0.0 - 3.6.4, ^3.7.1"
DocStringExtensions = "^0.8"
FFTW = "^1"
FourierFlows = "^0.7.1, 0.8"
FourierFlows = "^0.9"
JLD2 = "^0.1, ^0.2, ^0.3, ^0.4"
Reexport = "^0.2, ^1"
SpecialFunctions = "^0.10, ^1, 2"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[compat]
CUDA = "^1, ^2.4.2, 3.0.0 - 3.3.6"
CUDA = "^1, ^2.4.2, 3.0.0 - 3.6.4, ^3.7.1"
Literate = "≥2.9.0"
Plots = "1.10.1 - 1.21.3"
2 changes: 1 addition & 1 deletion examples/barotropicqgql_betaforced.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ## Let's begin
# Let's load `GeophysicalFlows.jl` and some other needed packages.

using GeophysicalFlows, Random, Printf, Plots
using GeophysicalFlows, CUDA, Random, Printf, Plots
using Statistics: mean
parsevalsum = FourierFlows.parsevalsum

Expand Down
2 changes: 1 addition & 1 deletion examples/singlelayerqg_betaforced.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# ## Let's begin
# Let's load `GeophysicalFlows.jl` and some other needed packages.
#
using GeophysicalFlows, Random, Printf, Plots
using GeophysicalFlows, CUDA, Random, Printf, Plots

using Statistics: mean
parsevalsum = FourierFlows.parsevalsum
Expand Down
2 changes: 1 addition & 1 deletion examples/twodnavierstokes_stochasticforcing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ## Let's begin
# Let's load `GeophysicalFlows.jl` and some other needed packages.
#
using GeophysicalFlows, Random, Printf, Plots
using GeophysicalFlows, CUDA, Random, Printf, Plots
parsevalsum = FourierFlows.parsevalsum

# ## Choosing a device: CPU or GPU
Expand Down
2 changes: 1 addition & 1 deletion examples/twodnavierstokes_stochasticforcing_budgets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# ## Let's begin
# Let's load `GeophysicalFlows.jl` and some other needed packages.
#
using GeophysicalFlows, Random, Printf, Plots
using GeophysicalFlows, CUDA, Random, Printf, Plots
parsevalsum = FourierFlows.parsevalsum

# ## Choosing a device: CPU or GPU
Expand Down
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using
CUDA,
GeophysicalFlows,
Statistics,
Random,
Expand All @@ -15,7 +16,7 @@ using FourierFlows: parsevalsum
using GeophysicalFlows: lambdipole, peakedisotropicspectrum

# the devices on which tests will run
devices = CUDA.has_cuda() ? (CPU(), GPU()) : (CPU(),)
devices = CUDA.functional() ? (CPU(), GPU()) : (CPU(),)

const rtol_lambdipole = 1e-2 # tolerance for lamb dipole tests
const rtol_twodnavierstokes = 1e-13 # tolerance for twodnavierstokes forcing tests
Expand Down

0 comments on commit 43571d6

Please sign in to comment.