-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from FourierFlows/ncc/add-scalability-remarks
Add scalability remarks
- Loading branch information
Showing
4 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# GPU | ||
|
||
GPU-functionality is enabled via `FourierFlows.jl`. For more information on how `FourierFlows.jl` | ||
handled with GPUs we urge you to the corresponding [`FourierFlows.jl` documentation section ](https://fourierflows.github.io/FourierFlowsDocumentation/stable/gpu/) | ||
|
||
All `GeophysicalFlows.jl` modules can be run on GPU by providing `GPU()` as the device (`dev`) | ||
argument in the problem constructors. For example, | ||
|
||
```julia | ||
julia> GeophysicalFlows.TwoDNavierStokes.Problem(GPU()) | ||
Problem | ||
├─────────── grid: grid (on GPU) | ||
├───── parameters: params | ||
├────── variables: vars | ||
├─── state vector: sol | ||
├─────── equation: eqn | ||
├────────── clock: clock | ||
└──── timestepper: RK4TimeStepper | ||
``` | ||
|
||
## Selecting GPU device | ||
|
||
`FourierFlows.jl` can only utilize a single GPU. If your machine has more than one GPU available, | ||
then functionality within `CUDA.jl` package enables the user to choose the GPU device that | ||
`FourierFlows.jl` should use. The user is referred to the [`CUDA.jl` Documentation](https://juliagpu.github.io/CUDA.jl/stable/lib/driver/#Device-Management); in particular, [`CUDA.devices`](https://juliagpu.github.io/CUDA.jl/stable/lib/driver/#CUDA.devices) and [`CUDA.CuDevice`](https://juliagpu.github.io/CUDA.jl/stable/lib/driver/#CUDA.CuDevice). |
7ef7ae3
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.
@JuliaRegistrator register
7ef7ae3
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.
Registration pull request created: JuliaRegistries/General/33624
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: