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

Conversation

@st4rl3ss
Copy link
Contributor

@st4rl3ss st4rl3ss commented Jun 11, 2019

Implemented the CLI11 as new command line parser as requested in #150 .

@st4rl3ss st4rl3ss requested review from iomaganaris and pramodk June 11, 2019 22:22
@pramodk
Copy link
Collaborator

pramodk commented Jun 12, 2019

I haven't looked at details but could you also update readme?

(@iomaganaris also take a look when you time permits.)

Copy link
Contributor

@iomaganaris iomaganaris left a comment

Choose a reason for hiding this comment

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

Overall nice PR 👍
I think I added all the comments I had until now. We can discuss anything if needed

@st4rl3ss st4rl3ss requested a review from iomaganaris June 14, 2019 15:30
@alkino
Copy link
Member

alkino commented Feb 18, 2020

Please retest

mkdir test${TEST}dat
mkdir ${TEST}
mpirun -n ${MPI_RANKS} ./x86_64/special --mpi -c sim_time=100 test${TEST}.hoc
mpirun -n ${MPI_RANKS} ./x86_64/special -mpi -c sim_time=100 test${TEST}.hoc
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this was already there, but mpiexec is guaranteed to exist in mpi implementations, not mpirun. Besides there were these CPU affinity problem with mpirun.

Copy link
Member

Choose a reason for hiding this comment

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

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. 2 small comments / questions.

Nicolas Cornu and others added 2 commits February 19, 2020 11:55
Copy link
Contributor

@ferdonline ferdonline left a comment

Choose a reason for hiding this comment

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

Dont merge yet. FloatingPoint is a bad idea in preprocessor macros!
We cant do VERSION > 0.16

@alkino
Copy link
Member

alkino commented Feb 19, 2020

Do it à la boost.

0.16.0 => 001600
1.2.3 => 010203

Easy to compare

@ferdonline
Copy link
Contributor

Exactly! But I left patch out, I dont expect that level of granularity to be required. But what do you think?


/// All-in-one initialization of mechanisms and solver
int solve_core(int argc, char** argv);
extern int solve_core(int argc, char** argv);
Copy link
Contributor

Choose a reason for hiding this comment

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

extern is apparently required in C99 mode 😫

Copy link
Contributor

@ferdonline ferdonline left a comment

Choose a reason for hiding this comment

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

Now I dont have any objections

@alkino
Copy link
Member

alkino commented Feb 19, 2020

So let's go ;)

@pramodk pramodk merged commit fd28045 into master Feb 19, 2020
@pramodk pramodk deleted the CLI11 branch February 19, 2020 17:36
pramodk pushed a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
* First integration of CLI11 in Coreneuron
* CLI11 integrated as ubmodule
* Fixed integration tests for new CLI
* cn_parameters structure includes constructor and parse function
* Removed paths from cmdline_interface tests.
* Changed cn_par to corenrn_param to make it clearer
* Now program doesn't print empty string parameters
* More details on new CLI on README.md
* Fixed integration tests for CLI and GPU
* Added `--show` option to facilitate debugging.
* Fix a free usage when variable is created with new
* Adding CORENEURON_VERSION in engine.h and also merging engine and enginemech.h
* Use combined int version

Co-authored-by: Nicolas Cornu <[email protected]>
Co-authored-by: Pramod Kumbhar <[email protected]>
Co-authored-by: Fernando Pereira <[email protected]>

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

8 participants