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 Aug 10, 2020

No description provided.

@pramodk pramodk changed the title Adding hpc coding conventions [Omar's branch hpc_conventions] Integrate hpc coding conventions and reformat CMake files Aug 10, 2020
Omar Awile and others added 6 commits August 11, 2020 00:06
and update CMakeLists.txt accordingly.

For now we are sticking to commit a1813c2 of hpc-coding-conventions to
continue using cmake-format 0.4.5. cmake-format 0.6.0 (required by
latest hpc-coding-conventions) introduces surprising formatting choices.
Also update hpc coding convention module
 - nmodl submodule updated latest master
@pramodk pramodk force-pushed the omar/hpc_coding_conventions branch from 1713e4b to 2183605 Compare August 10, 2020 22:12
@pramodk pramodk marked this pull request as ready for review August 10, 2020 22:12
@pramodk
Copy link
Collaborator Author

pramodk commented Aug 10, 2020

Locally NMODL enabled build is failing with:

 cmake .. -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCORENRN_ENABLE_NMODL=ON -DPYTHON_EXECUTABLE=`which python3`
make -j

[ 43%] Building CXX object external/nmodl/src/lexer/CMakeFiles/units_lexer.dir/main_units.cpp.o
[ 43%] Building CXX object external/nmodl/src/parser/CMakeFiles/c_parser.dir/main_c.cpp.o
[ 43%] Building CXX object external/nmodl/src/lexer/CMakeFiles/c_lexer.dir/main_c.cpp.o
[ 43%] Building CXX object external/nmodl/src/parser/CMakeFiles/nmodl_parser.dir/main_nmodl.cpp.o
[ 43%] Building CXX object external/nmodl/src/lexer/CMakeFiles/nmodl_lexer.dir/main_nmodl.cpp.o
/Users/kumbhar/workarena/repos/bbp/coreneuron/build/external/nmodl/src/visitors/checkparent_visitor.cpp:39:69: error: expected ')'
                "root->parent: {} is set when it should be nullptr" _format(parent_type));
                                                                    ^
/Users/kumbhar/workarena/repos/bbp/coreneuron/build/external/nmodl/src/visitors/checkparent_visitor.cpp:38:37: note: to match this '('
            throw std::runtime_error(
                                    ^
/Users/kumbhar/workarena/repos/bbp/coreneuron/build/external/nmodl/src/visitors/checkparent_visitor.cpp:48:83: error: expected ')'
            throw std::runtime_error("parent: {} and child->parent: {} missmatch" _format(
                                                                                  ^
/Users/kumbhar/workarena/repos/bbp/coreneuron/build/external/nmodl/src/visitors/checkparent_visitor.cpp:48:37: note: to match this '('
            throw std::runtime_error("parent: {} and child->parent: {} missmatch" _format(
                                    ^
2 errors generated.
make[2]: *** [external/nmodl/src/visitors/CMakeFiles/visitor_obj.dir/checkparent_visitor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 43%] Built target symtab_obj
Scanning dependencies of target symtab
[ 43%] Linking CXX static library ../../../../lib/libsymtab.a
...

This issue appeared in the past but don't remember precise fix atm.

Copy link
Contributor

@ohm314 ohm314 left a comment

Choose a reason for hiding this comment

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

Looks good, however, can someone remind me: What about the source code reformatting? don't we want to get it over with and apply coding conventions to everything at some point?

@pramodk
Copy link
Collaborator Author

pramodk commented Aug 11, 2020

@ohm314 : do you remember how we solved this issue #361 ? we certainly encountered it on NMODL side and I don't remember what we did :)

don't we want to get it over with and apply coding conventions to everything at some point?

If I am not mistaken, in your branch code formatting was not applied and anyway I thought it should be separate PR. I have this in pipeline, fixing couple of things locally and will upload it for review.

@pramodk pramodk merged commit b1ea553 into master Aug 11, 2020
@pramodk pramodk deleted the omar/hpc_coding_conventions branch August 11, 2020 11:52
pramodk added a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
…CoreNeuron#361)

* Introduce hpc-coding-conventions and update CMakeLists.txt accordingly.
* Add .cmake-format.changes.yaml for project specific changes
* Update cmake files according to cmake-format 0.6.0
* Various nitpicks to prepare PR for review
* nmodl submodule updated latest master
* Remove .clang-format file to avoid conflict with coding convention module

Co-authored-by: Omar Awile <[email protected]>

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