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

Conversation

@pramodk
Copy link
Collaborator

@pramodk pramodk commented Mar 3, 2021

  • acc_memcpy_to_device is used to copy the device pointer
  • so we have to use an address of the device pointer and size of
    pointer ie. sizeof(IvocVect*)
  • note that IvocVect is already copied by previous acc_copyin call
  • this issue was introduced in Split nrn_setup.cpp in phase1 / phase2 #283

fixes #501

See #501 for how to test this

CI_BRANCHES:NEURON_BRANCH=master,

 - acc_memcpy_to_device is used to copy copy the device pointer
 - so we have use address of device pointer and sizeof(IvocVect*)
   as the size to copy the pointer. Note that IvocVect is already
   copied by previous acc_copyin call
 - this issue was introduced in #283

fixes #501
Copy link
Contributor

@olupton olupton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

When this is merged we should update the submodule commit in NEURON and also remove this line: https://github.com/neuronsimulator/nrn/blob/9f77cdc21855c6ac2fb8646bfca96dce13995777/test/external/testcorenrn/CMakeLists.txt#L37 to enable the test.

Copy link
Member

@alkino alkino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that

@pramodk
Copy link
Collaborator Author

pramodk commented Mar 4, 2021

(realised that I write bad commit message with some typos and missing words; I updated it now)

@pramodk pramodk merged commit b8d9fcd into master Mar 4, 2021
@pramodk pramodk deleted the pramodk/vecplay-fix branch March 4, 2021 11:39
olupton added a commit to neuronsimulator/nrn that referenced this pull request Mar 4, 2021
- Bump CoreNEURON to commit including
  BlueBrain/CoreNeuron#502 and
  BlueBrain/CoreNeuron#504
- Enable the tests that were fixed by these PRs.
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Mar 4, 2021
- Bump CoreNEURON to commit including
  BlueBrain/CoreNeuron#502 and
  BlueBrain/CoreNeuron#504
- Enable the tests that were fixed by these PRs.
alexsavulescu pushed a commit to neuronsimulator/nrn that referenced this pull request Apr 13, 2021
- Bump CoreNEURON to commit including
  BlueBrain/CoreNeuron#502 and
  BlueBrain/CoreNeuron#504
- Enable the tests that were fixed by these PRs.
alexsavulescu pushed a commit to neuronsimulator/nrn that referenced this pull request Apr 30, 2021
- Bump CoreNEURON to commit including
  BlueBrain/CoreNeuron#502 and
  BlueBrain/CoreNeuron#504
- Enable the tests that were fixed by these PRs.
pramodk added a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
…euron#502)

- acc_memcpy_to_device is used to copy the device pointer
- so we have to use an address of the device pointer and size of 
   pointer ie. `sizeof(IvocVect*)`
- note that IvocVect is already copied by previous acc_copyin call
- this issue was introduced in BlueBrain/CoreNeuron#283

fixes BlueBrain/CoreNeuron#501

CoreNEURON Repo SHA: BlueBrain/CoreNeuron@b8d9fcd
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.

Issue while running VecPlay test on GPU

5 participants