Skip to content
Snippets Groups Projects
  1. May 23, 2019
  2. May 20, 2019
  3. May 17, 2019
    • Nora Abi Akar's avatar
      modcc fixes (#745) · e84a0e36
      Nora Abi Akar authored
      * Fixes segmentation faults; output compiler errors instead.
      * Consume units if provided in function/procedure prototypes or after function prototype.
      * Consume UNITSON/UNITSOFF.
      * Consume and store VALENCE as an ion property.
      e84a0e36
  4. May 09, 2019
  5. May 07, 2019
    • Sam Yates's avatar
      Add conductivity to implicit voltage solve step for stability. (#735) · e07f64fa
      Sam Yates authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Changes implicit solve step from:
      > solve (c/δt + L) v' = c/δt v - J
      
      to
      > solve (c/δt + g + L)v' = (c/δt +g) v - J
      
      where _c_ is capacitance, _g_ is membrane conductance, _J_ is membrane current.
      
      * Compute conductivity contribution for mechanisms from symbolic d/dv of current contribution (extracted from linearity test.)
      * Add new modcc 'source kind' for conductivity; tie to `vec_g_`.
      * Add conductivity field to fvm shared state.
      * Include conductivity in matrix assemblies for solution.
      
      Fixes #633.
      e07f64fa
  6. Apr 26, 2019
    • Benjamin Cumming's avatar
      Add citation information to the readme (#739) · 555b7d53
      Benjamin Cumming authored
      Add citation information to the readme.
      555b7d53
    • Benjamin Cumming's avatar
      Fix reduce-by-key CUDA (#737) · 6ad689fa
      Benjamin Cumming authored
      Fix bug in CUDA reduce_by_key implementation on V100 or later GPUs.
      The bug was not triggered for current use cases of the algorithm in Arbor, though it will be a problem when more than one reduction is to be performed in a single kernel invocation, which is required for ac
      cumulating both current and conductance values.
      * Use warp-synchronous aware operations to avoid problems on V100.
      * Simplify reduction kernel.
      * Rename `run_length` ancillary data structure to `key_set_pos`.
      * Add unit tests that trigger the incorrect behaviour observed in #736.
      
      Fixes #736.
      6ad689fa
  7. Apr 25, 2019
  8. Apr 03, 2019
  9. Mar 15, 2019
  10. Mar 14, 2019
  11. Mar 06, 2019
  12. Mar 05, 2019
  13. Mar 04, 2019
  14. Mar 01, 2019
    • Sam Yates's avatar
      Add single cell example. (#703) · df3bc45d
      Sam Yates authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Adds a small self contained example demonstrating the use of SWC and morphology specifications, to fill a void that will be left when the miniapp is removed.
      
      * Adds `single-cell` example, together with short README and example SWC file.
      * Removes redundant constructors for context objects.
      * Corrects and simplifies some of the context comments.
      * Add a method to `mc_segment` for calculating (approximately) a lower bound on the length constant of that segment for a given frequency, for use with a NEURON 'd-lambda' style discretization rule.
      df3bc45d
    • akuesters's avatar
      Clean up Python config feature (#709) · 187d6a24
      akuesters authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Remove old code and comments from Python config code.
      187d6a24
    • akuesters's avatar
      Python feature: config file to present Arbor's support on mpi, gpu and version (#708) · 7c0b8236
      akuesters authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Fixes #700
      
      Usage in python as: 
      
      ```
      >>>import arbor
      >>>arbor.config()
      {'mpi': True, 'mpi4py': True, 'gpu': False, 'version': '0.1.1-dev'}
      >>>d = arbor.config()
      >>>arbor.print_config(d)
      Arbor's configuration:
           mpi    :       True
           mpi4py :       True
           gpu    :      False
           version:  0.1.1-dev
      ```
      7c0b8236
    • Benjamin Cumming's avatar
      Hardware API documentation (#707) · 1c89fbbd
      Benjamin Cumming authored
      Update Hardware API documentation
      
      * split the domain decomposition and hardware API docs into separate pages
      * update hardware API to reflect new *libarbor* and *libarborenv*
      * add basic documentation for `optional`, `any` and `unique_any` types.
  15. Feb 27, 2019
    • Benjamin Cumming's avatar
      Documentation: update install guide. (#699) · 49d87aba
      Benjamin Cumming authored
      Update the installation guide to reflect the latest supported tool,
      compiler and library versions.
      
      Remove the Python docs, because they documented features that have not
      been implemented yet. The Python docs can be added incrementally as
      features are implemented.
      
      Start work on oupdating the documenetation for hardware interfaces and
      domain decomposition.
  16. Feb 26, 2019
    • noraabiakar's avatar
      Neon simd backend (#698) · 8d34e100
      noraabiakar authored and Sam Yates's avatar Sam Yates committed
      * Add SIMD neon implementation for aarch64.
      * Update unit tests to suit.
      8d34e100
    • noraabiakar's avatar
      Coalescing linear synapses (#680) · bfc6f593
      noraabiakar authored and Sam Yates's avatar Sam Yates committed
      Allow distinct point processes with the same linear dynamics to be combined if they reside in the same CV after discretization.
      
      * Add `linear` flag to `mechinfo` struct.
      * Add a linearity test to `modcc` that determines if a point process is a suitable candidate for coalescing: state and current updates must be linear, homogeneous functions of the state variables; state change on an event arrival (`net_receive`) must be independent of current state values.
      * Add `mechanism_state_table()` inquiry function to backend mechanism interface.
      * Add a field `multiplicity` to `fvm_mechanism_config` that accounts for merged synapse instances, and a corresponding `multiplicity` field in `mechanism::layout`.
      * Merge linear synapses of the same type  in `fvm_build_mechanism_data` if they have the same parameters.
      * Add global mc_cell property `coalesce_synapses` which enables or disables the merging of linear synapses at run time.
      * Rename virtual `nrn_init()` interface funct...
      bfc6f593
    • akuesters's avatar
      Python Documentation PR (#687) · fa7ea458
      akuesters authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Update documentation for Python.
      
          splits the conceptual model ideas from the C++ docs into their own section
          has C++ and Python docs for recipes, domain decomposition, etc.
      
      fixes #667
      
      Added the following documentation (structure):
      
      GETTING STARTED:
      
          Installing Arbor/Requirements/Optional Requirements/Python
          Installing Arbor/Building and Installing Arbor/Python Front End
      
      MODEL BASICS:
      
          Overview
          Common Types
          Recipes
          Domain Decomposition
          Simulations
      
      PYTHON:
      
          Overview
          Common Types
          Recipes
          Domain Decomposition
          Simulations
      
      DEVELOPERS:
      
          Python Profiler
          Python Unit Testing
      
      GETTING STARTED has two added sections of optional requirements using python and how to build the python front end.
      
      MODEL BASICS describes Arbor's concepts in general (independent of programming language), thus general information on concepts in C++ API was moved here/ added.
      
      PYTHON describes Arbor's pyth...
      fa7ea458
    • akuesters's avatar
      Python PR #667 (#668) · fa549238
      akuesters authored and Benjamin Cumming's avatar Benjamin Cumming committed
      First step towards the Python front end.
      
      This commit sets up the structure of the python implementation
      * directory structure
      * git submodule for pybind11
      * best practices for making bindings with pybind11
      * unit testing for the python front end
      
      It implements the following features in the Python front end
      * execution contexts
      * gpu detection
      * thread count detection
      * MPI initialization helpers.
      
      Fixes #667.
      fa549238
  17. Feb 25, 2019
  18. Feb 18, 2019
    • noraabiakar's avatar
      Integrate over integration-domains instead of cells in the lowered/back-end implementation (#688) · 7b0b69f3
      noraabiakar authored and Sam Yates's avatar Sam Yates committed
      Fixes #683.
      
      * Distinguish between per-cell matrix solver and per-'integration domain' state in the FVM back-end, adding new index for FVM back-ends mapping CVs to integration domain index.
      * Move to one event queue per integration domain, avoiding extra logic for synchronisation of times across gap-junction connected cells. This requires a merging of event lanes in `mc_cell_group` when constructing the staged events in the multi-event queue.
      * Add synapses to gap junction example.
      7b0b69f3
  19. Feb 06, 2019
    • Sam Yates's avatar
    • noraabiakar's avatar
      Explicit Gap Junctions (#661) · 2dc9520e
      noraabiakar authored and Sam Yates's avatar Sam Yates committed
      Add support for gap junctions in mc_cells, modelled as a conductance between 2 cell CVs. Gap junctions act as additional current sources on the CVs, as opposed to participating in the implicit voltage integration step.
      
      Cells connected via gap junctions must be in the same cell group as determined by the provided domain decomposition.
      
      * Extend `mc_cell` to hold a list of gap junction locations.
      * Add `num_gap_junction_sites()` and `gap_junctions_on()` methods to the `recipe` interface.
      * Add `gather_gids()` collective operation to distributed context interface and implementations.
      * Extend `partition_load_balance()` functionality to ensure that cells connected by gap junctions are put in the same groups.
      * Permute cells within `mc_cell_group` so that cells connected by gap junctions are contiguous.
      * Add gap junction information to `multicore::shared_state` and `gpu::shared_state`, together with `add_gj_current()` method that computes GJ current contributions.
      * Ad...
      2dc9520e
  20. Feb 05, 2019
  21. Feb 04, 2019
    • Sam Yates's avatar
      Add fallback implementation of glob for platforms without it. (#660) · b11d2d14
      Sam Yates authored
      Implement a basic glob routine, supporting a subset of POSIX behaviour (e.g. no character classes), as a fallback for platforms such as Android which do not include it in their libc.
      
      * Add CMake configuration option `ARB_USE_POSIX_GLOB`, defaults to `ON`, that determines if the fallback implementation is used or not.
      * Extend `sup::path` functionality to add directory iterators and a couple more path manipulation routines, again following the C++17 `std::filesystem` interface.
      * Add an NFA pattern matcher `glob_basic_match` and file system `glob_basic` function; the latter is abstracted over a file system provider object, primarily for testing/mocking purposes.
      * Add unit tests for new `sup::path` functionality and for `glob_basic`.
      
      FIxes #181.
  22. Feb 01, 2019
    • Sam Yates's avatar
      Feature/expunge spike emitter (#682) · 4dc40c58
      Sam Yates authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Remove `sup::spike_emitter` and replace usages in `miniapp` and `brunel-miniapp`.
      
      * Replaces instances of `spike_emitter` in `miniapp` and `brunel-miniapp` with a callback that saves spikes to a vector and which is written to a file after the simulation ends.
      * Remove unused fields from `cl_options` in `brunel-miniapp`, including spike output file components.
      * Hard code spike output path to `spikes.gdf` in `brunel-miniapp` and write saved spikes after simulation end.
      * Correctly set 'rank' in `miniapp` (used in spike output paths).
      * Read spike output options from JSON config in `miniapp` unconditionally.
      * Make line comments in `miniapp` and `brunel-miniapp` main functions a bit more consistent in
      formatting.
      
      Fixes #677.
      4dc40c58
  23. Jan 31, 2019
    • Sam Yates's avatar
      Split out 'arborenv' as an installable library from the sup library. (#679) · f4b2e034
      Sam Yates authored and Benjamin Cumming's avatar Benjamin Cumming committed
      Make a new installed library `libarborenv.a` covering a subset of the `sup` library functionality, with corresponding installed CMake target `arbor::arborenv`.
      
      * Move NVML or CUDA 10 API decision for GPU UUID discovery to top level CMake.
      * Move affinity, concurrency, MPI init guard, and gpu detection and negotiation functionality out of `sup` and into new library `arborenv`.
      * Move `include/arbor` in project tree to `arbor/include/arbor` (for consistency across `sup`, `arbor`, and `arborenv` subdirectories.)
      * Wrangle more explicit library dependency adding CMake code into the installed `arbor-config.cmake`, to help mitigate [CMake issue #18614](https://gitlab.kitware.com/cmake/cmake/issues/18614).
      * Have `arborenv` code throw `std::runtime_exception` instead of `arb::arbor_error`. (We are still using `arb::mpi_error` though for a failure in `with_mpi`.)
      * Move `scope_exit` into the `arb::util` namespace.
      * Merge `affini...
      f4b2e034
  24. Jan 22, 2019