- May 15, 2018
-
-
Replace hard-coded index variable names in modcc cuda printer with ones derived from the external variable. Uses `decode_indexed_variable`.
-
- May 11, 2018
-
-
* Use `sys/types.h` instead of `endian.h` for greater portability. * Avoid use of constructor for `std::vector` in unit tests that is only available from C++14.
-
Sam Yates authored
* Update SIMD developer docs to reflect newly merged mechanism refactor work.
-
- May 09, 2018
-
-
Completes CUDA printing in modcc. * Add CudaPrinter visitor, overriding CPrinter. * Add `ostream` `operator<<` overloads for `arb::gpu::shared_state` and `device_view` for debugging. * Fix GPU back-end bugs.
-
Sam Yates authored
First commit of two for mechanism refactor work (refer to PR #484 and PR #483). FVM/mechanism code: * Refactor mechanism data structures to decouple backend-specific implementations and mechanism metadata. * Add mechanism catalogue for managing mechanism metadata and concrete implementation prototypes. * Add fingerprint-checking to mechanism metadata and implementations to confirm they come from the same NMODL source (fingerprint is not yet computed, but tests are in place). * Split FVM discretization work out from FVM integrator code. * Use abstract base class over backend-templated FVM integrator class `fvm_lowered_cell_impl` to allow separate compilation of `mc_cell_group` and to remove the dummy backend code. * Add a new FVM-specific scalar type `fvm_index_type` that is an alias for `int` to replace `fvm_size_type` in fvm layouts and mechanisms. This was chosen as an alternative to making `unsigned` versions of all our SIMD implementation classes. * Exte...
-
- Apr 11, 2018
-
-
Add two new documentation pages for the C++ API * Add domain decomposition page that covers `domain_decomposition`, `node_info` and `partition_load_balance`. * Add simulation page that describes `arb::simulation` API interface. * Fix some small typos elsewhere in the docs. * Use `std::move` when adding spike callbacks to `arb::simulation` (useful if callbacks are stateful).
-
Fixes issue #467 * Add GPU synchronization points where required for Kepler to coordinate CPU access of managed memory. * Use hand-rolled double precision atomic addition for Kelper targets. * Replace `ARB_WITH_CUDA` build option with `ARB_GPU_MODEL` option that takes one of 'none', 'K20', 'K80' or 'P100', and set up source-code defines accoringly. * Clean up of redundant compiler flags and defines no longer required now that the project uses separate compilation for CUDA sources.
-
- Apr 06, 2018
-
-
noraabiakar authored
Fix some typos in the SIMD documentation.
-
- Apr 05, 2018
-
-
Add some C++ API documentation. * Create C++ API section in docs. * Document `arb::recipe`: both a class reference along with more explanatory text and best practices guide. * Add some class documentation of basic types required to understand recipe definition. * Some in-code comment clean up. * Change `arb::cell_kind` from a vanilla enum to a scoped enum.
-
- Mar 29, 2018
-
-
The name `arb::model` did not clearly describe the role of the class, while `arb::simulation` better captures that this is an instantiation of a model for the purpose of running a simulation, as distinct from the description of a model represented by an `arb::recipe` instance. * Rename sources `model.{hpp,cpp}` to `simulation.{hpp,cpp}`. * Rename class `arb::model` to `arb::simulation`. * Update docs and tests to suit.
-
Put all the SIMD docs in a single topic, to simplify the documentation tree.
-
- Mar 27, 2018
-
-
Ben Cumming authored
Added an installation guide to the Read The Docs Removed the outdated build/install information from README.md Link from README to Read The Docs Updated the splash page for Read The Docs
-
Ben Cumming authored
CUDA 9 introduced new, fine-grained, thread synchronization primitives. In doing so, it introduced new forms of the warp intrinsics like __shfl_up, depricating the old symbols in the process. It will be a while before we can use 9 as the default minimum, so we have to support compilers that expect the new and old behavior. There are two options: wrap the intrinsics in question, or pass nvcc a flag to not issue warnings about depricated symbols. I go for the approach of wrapping, because I would rather keep the compiler warning turned on. Fixes #379.
-
- Mar 26, 2018
-
-
Sam Yates authored
Padded vectors with run-time padding/alignment guarantees will form the basis of the storage class for the new CPU and SIMD generated mechanisms. * Add `padded_allocator` that aligns and pads allocations. * Make microbenchmark for `default_construct_adaptor` that overrides the allocator construct() to default- instead of value-initialization on values. * Add `with_instrumented_malloc` class for tracking malloc, realloc, etc. calls. * Add unit tests for `padded_allocator`.
-
- Mar 20, 2018
-
-
Ben Cumming authored
fixes #446.
-
- Mar 19, 2018
-
-
Sam Yates authored
Intel compiler with default options does not guarantee correct fp behaviour with subnormals; it presumably sets the fp state to flush to zero. Reordering a multiply and divide in the expm1 calculation avoids a transient subnormal value that was causing the routine to incorrectly return zero for very small, but normal, arguments.
-
- Mar 16, 2018
-
-
Sam Yates authored
-
Sam Yates authored
This provides a bunch of SIMD intrinsic wrappers as a precursor to the SIMD printers. The aim is that the SIMD printer can be agnostic regarding the particular vector architecture. The design is based rather loosely on the proposal P0214R6 for C++ Parallelism TS 2. The transcendental function implementations are adapted from the existing SIMD architecture-specific code, which in turn are based on the Cephes library algorithms. The custom CSS for the html documentation have been tweaked.
-
Ben Cumming authored
-
Ben Cumming authored
In some places our CMake scripts were attempting to check out git submodules when required, if they have not already been checked out. The code that does this was cut and pasted, and was getting unwieldy. To minimise the responsibilities of CMake, this PR removes calls to git introduces a function check_git_submodule that can be used to test if a git submodule is installed, and print a helpful message that informs the user how to check it out if needed. introduces a function add_error_target that makes a target that prints a message then quits with an error. This can be used to generate a proxy target when a problem is detected during CMake setup. This means that an error is only generated when building a target with a missing dependency, instead of an error during CMake setup. refactors the CMake setup for the docs and ubenches targets to use these new features.
-
- Mar 15, 2018
-
-
Ben Cumming authored
This replaces the CMake templates provided by TBB with a much more sane alternative! The TBB CMake templates had a very strange workflow, that involved downloading the TBB source and compiling it, which made it impossible to configure the TBB build, and caused problems on systems without connection to the internet. We replace this with a fork of the TBB repository maintained by Github user @wjakob: https://github.com/wjakob/tbb This fork provides a sane CMakeLists.txt that can be configured from our CMake setup. It is added as a git submodule, so it can be downloaded with the rest of the repository, hence not requiring connection to the internet during CMake configuration. It could be extended to use a user-provided build of TBB to use instead of building it. fixes #332.
-
Replace the profiler with a simpler design that works for nested multi-threaded regions. * Replace hierarchical profiler accounting with strictly exclusive regions. * Make tree grouping of profile data a presentation concern. * Uncouple profiler semantics from Arbor classes such as `model`. * Add thorough documentation for the new profiler to the library documentation.
-
- Feb 28, 2018
-
-
Ben Cumming authored
Use type erasure tricks to remove abstract base class for `event_generator`. This simplifies all the code that uses `event_generator`s (not radically, but it is simpler).
-
- Jan 29, 2018
-
-
Ben Cumming authored
Added cell description to the Arbor namespace.
-
- Jan 26, 2018
-
-
kabicm authored
Two main contributions: 1) Implementation of LIF neuron model with no kernel and no external input (I_e=0) The input current to each neuron is therefore just the sum of all the weights of incoming spikes. We integrate in jumps dt = min(t_final - t, t_event - t), since we know the exact solution of the differential equal describing the membrane potential. 2) Miniapp for simulating the Brunel network of LIF neurons. The network consists of 2 main populations: excitatory and inhibitory populations. Each neuron from the network receives a fixed number (proportional to the size of the population) of incoming connections from both of these groups. In addition to the input from excitatory and inhibitory populations, each neuron receives a fixed number of connections from the Poisson neurons producing the Poisson-like input that is integrated into the LIF cell group so that the communication of Poisson events is bypassed.
-
- Jan 25, 2018
-
-
* Parallelize calls to `recipe::connections_on` in communicator constructor. Fixes #442.
-
- Jan 18, 2018
-
-
Ben Cumming authored
Add an example miniapp that demonstrates how to use event generators in a C++ recipe.
-
- Jan 15, 2018
-
-
Sam Yates authored
* Replace improper use of brace initialization of vectors of classes with a deleted move constructed with a sequence of `emplace_back` invocations.
-
Ben Cumming authored
There were two latent bugs in the event generation part of `model`. 1. A segmentation fault when initializing the `event_generators` in the `model` constructor caused by using an index variable after it had been incremented. 2. Events generated during the first epoch were not delivered on time. The first issue was simple to fix, by ensuring that the coutning variable is incremented at the end of the loop. The second issue required refactoring the event wrangling inside `model`. Events can be introduced into a model via three sources: 1. Generated by spike exchange 2. By calling the `model::inject_events()` interface 3. `event_generator`s attached to cells. The refactoring was required to ensure that all three sources are handled correctly. There is further opportunities for refactoring the code to make it a bit cleaner, specifically putting the wrangling code in its own type that could be tested seperately, outside `model`, but that is beyond the scope of this fix.
-
* Enable `cell` copy constructor, remove special tag type used to guard `cell` cloning. * Provide sane defaults for `recipe` methods.
-
- Dec 22, 2017
-
-
* Remove `cell_tree` wrapper around `tree`. * Separate `tree` construction from tree reduction operation. * Rename `make_parent_index` to `tree_reduce`. Fixes #426.
-
Wouter Klijn authored
A small script to compare files containing (gid, time) pairs. The list do not have to be sorted in time or gid order. A details error is displayed on differences.
-
- Dec 21, 2017
-
-
Sam Yates authored
* Fix indirection in ion concentration write. * Remove second indirection in ion write assignment. * Extend ion write unit test to cover non-contiguous ion CV cases and verify correct ion concentration averaging. Fixes #424.
-
- Dec 20, 2017
-
-
* Rename `miniapps` subdirectory to `example`. * Have all example executables be built under `example` in the build directory. * Update Travis CI to run miniapp from new path.
-
* Add three new mechanisms: `nax.mod`, `kdrmt.mod` and `kamt.mod`. * Add new built-in math operators to `modcc`: `min`, `max`, `abs` and `exprelr`. `exprelr` is defined as the reciprocal of the 'exprel' function, exprel(x)=x/(exp(x)-1), exprel(1)=1. This function occurs frequently in HH-style mechanisms, and having a built-in operator avoids the ad hoc `vtrap` functions found in NMODL files in the wild. * Split Arbor SIMD intrinsics support into AVX2- and AVX512-specific files. * Add unit tests for new maths operators for C++, SIMD and CUDA implementations.
-
- Dec 19, 2017
-
-
Sam Yates authored
Reduce differences between `util::optional` and `std::optional`. * Rename `util::nothing` to `util::nullopt`. * Replace `util::get()` by`util::optional::value()`. * Add correct move semantics to `util::optional::value()`. * Add `util::optional::value_or()` method. * Remove unused monadic functionality from `util::optional` and `util::uninitialized`. * Update code formatting to closer adhere to coding guidelines. * Add convenience ""_s string constructor for unit tests. * Update unit tests accordingly. Fixes #419.
-
- Dec 18, 2017
-
-
* Fix various compiler warnings in `modcc` when using Apple Clang.
-
- Dec 16, 2017
-
-
Ben Cumming authored
Implement generic `event_generator`, and some common generators that should be useful to users out of the box: * poisson sequence * uniform regular sequence * from a user-prescribed sequence * from a `std::vector` of post synaptic events. Extend `recipe` API to provide an `recipe::event_generators(gid)` that returns a list of `event_generator`s attached to a cell with `gid`. Update the `model` class and `merge_events` method to support event generators. Fixes #401
-
- Dec 11, 2017
-
-
Wouter Klijn authored
Fix bug in `rss_cell_group`s with more than one cell with different `dt` or `start_time` values. Fixes #410.
-
- Dec 05, 2017
-
-
Also removes vestigial `intitial` procedure generated from a MOD file with no INITIAL block. Fixes #407.
-