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

Conversation

@iomaganaris
Copy link
Contributor

Take number 2 on #89 .
Having

#pragma omp atomic update
#pragma acc atomic update

with OpenMP and GPU/OpenACC enabled with mod2c generates the following issue:

NVC++-S-0155-Invalid atomic region.  (x86_64/corenrn/mod2c/axial.cpp: 346)
NVC++/x86-64 Linux 22.3-0: compilation completed with severe errors

For this purpose #pragma omp atomic update can be removed since we never have #pragma omp simd in mod2c and #pragma ivdep is disabled when we have either PROTECT, MUTEX or MUTEUNLOCK.
For the same reason I think #pragma omp critical can also be removed.

pramodk added a commit to neuronsimulator/nrn that referenced this pull request Feb 15, 2023
* use of omp atomic is unnecessary - avoid compilation
  error with NVHPC 21.1
* see BlueBrain/mod2c/pull/90
@pramodk
Copy link
Collaborator

pramodk commented Feb 15, 2023

I launched neuron wheel testing CI: https://bbpgitlab.epfl.ch/hpc/cellular/neuron-gpu-wheel-testing/-/jobs/555371

@pramodk
Copy link
Collaborator

pramodk commented Feb 15, 2023

I was bit confused by wheel testing CI failing with Azure Drop but it seems unrelated: neuronsimulator/nrn#2227 (comment)

@pramodk pramodk merged commit 284bd61 into master Feb 15, 2023
@pramodk pramodk deleted the magkanar/fix_mutex_protect branch February 15, 2023 08:43
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.

4 participants