-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a970cc2
commit 9156f7b
Showing
3 changed files
with
39 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,35 @@ | ||
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 | ||
|
||
... | ||
``` |
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