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

[email protected]+ workaround for Random123. #754

Merged
merged 3 commits into from
Jan 18, 2022

Conversation

olupton
Copy link
Contributor

@olupton olupton commented Jan 17, 2022

Description
Mainly add a workaround for an issue in Random123 compiler detection logic with versions 21.11 and newer of the NVHPC compilers.

Closes #724.
See also: neuronsimulator/nrn#1587.

How to test this?
Build with NVHPC 21.11 or newer and GPU support disabled. Without this PR, you should see compilation errors.

Use certain branches for the SimulationStack CI

CI_BRANCHES:NEURON_BRANCH=master,

Copy link
Collaborator

@pramodk pramodk left a comment

Choose a reason for hiding this comment

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

LGTM

@olupton olupton merged commit 221ab3b into master Jan 18, 2022
@olupton olupton deleted the olupton/nvhpc-abm-random123 branch January 18, 2022 12:12
olupton added a commit to neuronsimulator/nrn that referenced this pull request Jan 18, 2022
alexsavulescu pushed a commit to neuronsimulator/nrn that referenced this pull request Jan 18, 2022
* [email protected]+ workaround for Random123.
* Pass -DR123_USE_INTRIN_H=0 when compiling NEURON sources to appease Random123's
compiler-specific detection logic.
* Bump CoreNEURON past BlueBrain/CoreNeuron#754.
# (mis)detects nvc++ as nvcc because we pass the -cuda option and we therefore avoid the
# problem. If GPU support is disabled, we define R123_USE_INTRIN_H=0 to avoid the problem.
list(APPEND CORENRN_COMPILE_DEFS R123_USE_INTRIN_H=0)
endif()
endif()
Copy link
Collaborator

Choose a reason for hiding this comment

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

@olupton : FYI - (accidentally) I was trying to use cpu wheel with nvhpc compiler and end-up with this error.

Wonder if this logic needs to be pushed at later stage (in nrnivmodl_core_makefile or similar)

pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
* Fix warnings in %nvhpc~gpu builds.
* Workaround %[email protected]:~gpu Random123+ABM issue
  by passing -DR123_USE_INTRIN_H=0.

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

Random123 does not cope with ABM feature macros with PGI/NVIDIA compilers.
3 participants