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

Removal of mpas_pool_get_array_gpu calls for 2 routines #17

Merged
merged 1 commit into from
Apr 11, 2018
Merged

Removal of mpas_pool_get_array_gpu calls for 2 routines #17

merged 1 commit into from
Apr 11, 2018

Conversation

supreethms1809
Copy link

@supreethms1809 supreethms1809 commented Apr 6, 2018

Replaced the mpas_pool_get_array_gpu function by mpas_pool_get_array
for the routines solve_diagnostics and init_coupled_diagnostics.
The gpu calls has !$acc data copyin directives and it transfers the
variables on to gpu. The two functions solve_diagnostics and init_coupled

diagnostics functions are also called outside the time integration. The
data copying is corrupting the GPU data later in the timestep.
This results in NaNs.

Replaced the mpas_pool_get_array_gpu function by mpas_pool_get_array
for the routines solve_diagnostics and init_coupled_diagnostics.
The _gpu calls has !$acc data copyin directives and it transfers the
variables on to gpu. The two functions solve_diagnostics and init_coupled_
diagnostics functions are also called outside the time integration. The
data copying is corrupting the GPU data later in the timestep.
This results in NaNs.
@raghuraj19 raghuraj19 requested a review from mgduda April 6, 2018 23:31
@mgduda mgduda merged commit 67608e0 into raghuraj19:atmosphere/gpu Apr 11, 2018
mgduda added a commit that referenced this pull request Apr 11, 2018
This merge replaces the calls to the mpas_pool_get_array_gpu function
with calls to mpas_pool_get_array for the routines solve_diagnostics and
init_coupled_diagnostics. The gpu calls have !$acc data copyin directives
and they transfer the variables on to gpu. The two functions solve_diagnostics
and init_coupled_diagnostics are also called outside the time integration.
The data copying was corrupting the GPU data later in the timestep, resulting
in NaNs.

* removal_of_getarray_gpu_call:
  Removal of mpas_get_array_gpu calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants