Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding GPU support documentation #43

Merged
merged 2 commits into from
May 25, 2023
Merged

Conversation

NewtonSander
Copy link
Collaborator

@NewtonSander NewtonSander commented May 17, 2023

Introduction

This PR documents how a user can run the NDK simulation using the GPU #32 .
This code was tested in an AWS instance with NVIDIA HPC preinstalled:

PLATFORM='nvidia-acc' python plot_full_scenario.py 
creating a grid with shape: (241, 141) for extent: [0.12 0.07] m
Estimated time to complete simulation: 47 seconds. Memory required is 8 GB (available 64.264081408 GB). These values are approximated.
Default Devito configuration:
	 * autotuning=off
	 * develop-mode=False
	 * mpi=False
	 * log-level=DEBUG
	 * language=openmp
(ShotID 0) Preparing to run state for shot
(ShotID 0) Estimated bandwidth for the propagated wavelet 0.497-0.502 MHz
(ShotID 0) Spatial grid spacing (0.500 mm | 5.981 PPW) is below dispersion limit (0.598 mm | 5.000 PPW)
(ShotID 0) Time grid spacing (0.083 μs | 46%) is above OT2 limit (0.080 μs) and below OT4 limit (0.145 μs)
(ShotID 0) Selected undersampling level 4
(ShotID 0) Selected time stepping scheme OT4
Operator `acoustic_iso_state` instance configuration:
	 * subs={h_x: 0.0005, h_y: 0.0005}
	 * opt=advanced
	 * compiler=pgcc
	 * language=openacc
	 * platform=nvidiaX

Changes

A PLATFORM environment variable is read when running the pde, by setting it to nvidia-acc the GPU can be used to run the simulation

@NewtonSander NewtonSander force-pushed the document_gpu_usage_on_ndk branch from 9156f7b to 7300625 Compare May 18, 2023 17:04
@d-lucena d-lucena merged commit 0113931 into main May 25, 2023
@NewtonSander NewtonSander deleted the document_gpu_usage_on_ndk branch June 5, 2023 19:32
NewtonSander added a commit that referenced this pull request Jul 26, 2024
* Adding GPU support documentation

* add warning about gpu memory for large simulations

---------

Co-authored-by: d-lucena <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants