-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GPU support documentation (#43)
* Adding GPU support documentation * add warning about gpu memory for large simulations --------- Co-authored-by: d-lucena <[email protected]>
- Loading branch information
1 parent
eefb88a
commit 7d944a5
Showing
3 changed files
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
In order to use your GPU to run NDK simulations you will have to install the [NVIDIA HPC SDK](https://developer.nvidia.com/hpc-sdk-downloads). | ||
|
||
!!! warning | ||
Make sure the [HPC SDK environment variables](https://docs.nvidia.com/hpc-sdk/hpc-sdk-install-guide/index.html#install-linux-end-usr-env-settings) are exported. | ||
|
||
You will only have to export one environment variable to enable the GPU support for NDK: | ||
|
||
```bash | ||
export PLATFORM="nvidia-acc" | ||
``` | ||
|
||
Now when running NDK simulations you should be able to see `platform=nvidiaX` in the execution output: | ||
|
||
```py | ||
import neurotechdevkit as ndk | ||
|
||
scenario = ndk.make('scenario-2-2d-v0') | ||
result = scenario.simulate_steady_state() | ||
result.render_steady_state_amplitudes() | ||
``` | ||
|
||
|
||
Output: | ||
```bash | ||
... | ||
|
||
Operator `acoustic_iso_state` instance configuration: | ||
* subs={h_x: 0.0005, h_y: 0.0005} | ||
* opt=advanced | ||
* compiler=pgcc | ||
* language=openacc | ||
* platform=nvidiaX | ||
|
||
... | ||
``` | ||
|
||
!!! warning | ||
Simulations with high memory requirement (e.g. 3D simulations) may not fit in the GPU and running them with GPU acceleration might crash the simulation. |
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