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

Fix warnings and improve ccache performance.#723

Merged
olupton merged 6 commits into
masterfrom
olupton/ccache
Aug 26, 2021
Merged

Fix warnings and improve ccache performance.#723
olupton merged 6 commits into
masterfrom
olupton/ccache

Conversation

@olupton

@olupton olupton commented Aug 23, 2021

Copy link
Copy Markdown
Contributor

This is a collection of minor fixes to compiler warnings (when compiling standalone).
It also changes how flex and bison are invoked so that relative paths are used.
This should improve the ccache hit rate on some files that the NVHPC compilers are extremely slow to compile.

This makes them work properly in standalone builds, when NMODL is not a
submodule of CoreNEURON.
Fixes NVHPC compiler warning: warning #612-D: overloaded virtual
function "nmodl::ast::Ast::get_shared_ptr" is only partially
overridden in class "PyAst".
Fixes compiler warning.
Otherwise clang-format-12 added whitespace that clang-format-11 did not.
This avoids #line directives and asserts containing the absolute path of
the build directory, which should in turn improve ccache performance in
the CI.
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #14545 (:no_entry:) have been uploaded here!

Status and direct links:

@olupton olupton marked this pull request as ready for review August 23, 2021 15:10
@olupton

olupton commented Aug 23, 2021

Copy link
Copy Markdown
Contributor Author

I suspect the CI failure (in CVF) comes from the recent "psolve direct" merges to NEURON and CoreNEURON. We should fix that, but the content of this PR could be reviewed already.

@pramodk pramodk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Comment thread src/lexer/CMakeLists.txt

@iomaganaris iomaganaris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@pramodk pramodk closed this Aug 26, 2021
@pramodk pramodk reopened this Aug 26, 2021
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #14970 (:no_entry:) have been uploaded here!

Status and direct links:

@iomaganaris iomaganaris reopened this Aug 26, 2021
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #15041 (:white_check_mark:) have been uploaded here!

Status and direct links:

@olupton olupton merged commit e98f281 into master Aug 26, 2021
@olupton olupton deleted the olupton/ccache branch August 26, 2021 19:13
JCGoran pushed a commit to neuronsimulator/nrn that referenced this pull request Mar 12, 2025
* Tweak NVHPC warning suppressions. This makes them
  work properly in standalone builds, when NMODL is not
  a submodule of CoreNEURON.
* Add const version of PyAst::get_shared_ptr. Fixes
  NVHPC compiler warning: warning BlueBrain/nmodl#612-D: overloaded
  virtual function "nmodl::ast::Ast::get_shared_ptr" is
  only partially overridden in class "PyAst".
* Remove unused variable. Fixes compiler warning.
* Tweak code so clang-format-{11,12} agree. Otherwise
  clang-format-12 added whitespace that
  clang-format-11 did not.
* Call flex and bison with relative paths. This avoids
  #line directives and asserts containing the absolute
  path of the build directory, which should in turn
  improve ccache performance in the CI.
* Fix comment and add note about ccache misses.

NMODL Repo SHA: BlueBrain/nmodl@e98f281
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.

5 participants