NEURON
main1.cpp File Reference

File containing main driver routine for CoreNeuron. More...

Go to the source code of this file.

Namespaces

 coreneuron
 THIS FILE IS AUTO GENERATED DONT MODIFY IT.
 

Functions

const char * corenrn_version ()
 
void set_openmp_threads (int nthread)
 If "export OMP_NUM_THREADS=n" is not set then omp by default sets the number of threads equal to the number of cores on this node. More...
 
char * prepare_args (int &argc, char **&argv, std::string &args)
 Convert char* containing arguments from neuron to char* argv[] for coreneuron command line argument parser. More...
 
void coreneuron::call_prcellstate_for_prcellgid (int prcellgid, int compute_gpu, int is_init)
 
void coreneuron::get_nrn_trajectory_requests (int bsize)
 
void coreneuron::nrn_init_and_load_data (int argc, char *argv[], CheckPoints &checkPoints, bool is_mapping_needed, bool run_setup_cleanup)
 
void coreneuron::handle_forward_skip (double forwardskip, int prcellgid)
 
std::string coreneuron::cnrn_version ()
 
static void coreneuron::trajectory_return ()
 
std::unique_ptr< ReportHandlercoreneuron::create_report_handler (const ReportConfiguration &config, const SpikesInfo &spikes_info)
 
void mk_mech_init (int argc, char **argv)
 initialize standard mechanisms from coreneuron More...
 
int run_solve_core (int argc, char **argv)
 

Variables

void(* nrn2core_part2_clean_ )()
 

Detailed Description

File containing main driver routine for CoreNeuron.

Date
26 Oct 2014

Definition in file main1.cpp.

Function Documentation

◆ corenrn_version()

const char* corenrn_version ( )

Definition at line 51 of file main1.cpp.

◆ mk_mech_init()

void mk_mech_init ( int  argc,
char **  argv 
)

initialize standard mechanisms from coreneuron

Definition at line 438 of file main1.cpp.

◆ prepare_args()

char* prepare_args ( int &  argc,
char **&  argv,
std::string &  args 
)

Convert char* containing arguments from neuron to char* argv[] for coreneuron command line argument parser.

parse arguments from neuron and prepare new one for coreneuron

Definition at line 77 of file main1.cpp.

◆ run_solve_core()

int run_solve_core ( int  argc,
char **  argv 
)

Solver execution

Definition at line 492 of file main1.cpp.

◆ set_openmp_threads()

void set_openmp_threads ( int  nthread)

If "export OMP_NUM_THREADS=n" is not set then omp by default sets the number of threads equal to the number of cores on this node.

set openmp threads equal to neuron's pthread

If there are a number of mpi processes on this node as well, things can go very slowly as there are so many more threads than cores. Assume the NEURON users pc.nthread() is well chosen if OMP_NUM_THREADS is not set.

Definition at line 65 of file main1.cpp.

Variable Documentation

◆ nrn2core_part2_clean_

void(* nrn2core_part2_clean_) () ( )

Definition at line 55 of file main1.cpp.