NEURON
test_multicore.h File Reference
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 nrn
 
 nrn::test
 

Functions

auto nrn::test::make_available_threads_range ()
 
std::string operator""_pas_cells (unsigned long long nof_cells)
 

Variables

int nrn::test::MAX_PROCESSORS {nrn_how_many_processors()}
 
constexpr auto pass_cell_template
 
constexpr auto prun
 prun requires a parallel context to be created before -> pc More...
 

Function Documentation

◆ operator""_pas_cells()

std::string operator""_pas_cells ( unsigned long long  nof_cells)

Definition at line 124 of file test_multicore.h.

Variable Documentation

◆ pass_cell_template

constexpr auto pass_cell_template
constexpr

Definition at line 21 of file test_multicore.h.

◆ prun

constexpr auto prun
constexpr
Initial value:
= R"(
load_file("nrngui.hoc")
load_file("stdlib.hoc")
func prun() {local runtime
pc.set_maxstep(10)
finitialize(-65)
runtime=startsw()
stdinit()
batch_run(tstop, tstop)
runtime=startsw()-runtime
return runtime
}
)"

prun requires a parallel context to be created before -> pc

Definition at line 108 of file test_multicore.h.