Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Conversation

@olupton
Copy link
Contributor

@olupton olupton commented May 10, 2021

Description
Remove the call to acc_shutdown(acc_device_nvidia) (OpenACC API) when cleaning up GPU data. This invoked undefined behaviour in case CoreNEURON was executed on GPU multiple times in the same process. See also: #515.

How to test this?
The coreneuron_modtests::datareturn_py test, which runs three multiple CoreNEURON simulations from one Python script, is sensitive to this issue. This was not actually failing on master, but it probably could have been. Some other draft modifications that used the acc_map_data and acc_unmap_data calls exposed the issue.

Test System

  • OS: BB5
  • Compiler: NVHPC 21.2
  • Version: master
  • Backend: GPU

Use certain branches for the SimulationStack CI

CI_BRANCHES:NEURON_BRANCH=master,

This invoked undefined behaviour in case CoreNEURON was executed on GPU
multiple times in the same process.
@olupton olupton merged commit 3a4d5b5 into master May 10, 2021
@olupton olupton deleted the olupton/acc-shutdown branch May 10, 2021 15:39
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
This invoked undefined behaviour when CoreNEURON was executed on GPU
multiple times in the same process.

CoreNEURON Repo SHA: BlueBrain/CoreNeuron@3a4d5b5
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants