Skip to content
Snippets Groups Projects
  1. Jan 05, 2023
    • Thorsten Hater's avatar
      Emit better warning. (#2071) · 09c30fce
      Thorsten Hater authored
      Before
      ```
      ✦2 ❯ modcc -t cpu jnml-arbor/SKv3_1.mod
      Warnings:
        * jnml-arbor/SKv3_1.mod:(line 1,col 1) Assignments to local variable containing state variables will not be integrated in time
      ```
      After
      ```
      ✦2 ❯ modcc -t cpu jnml-arbor/SKv3_1.mod
      Warnings:
        * jnml-arbor/SKv3_1.mod:(line 172,col 14) Assignments to local variable containing state variables will not be integrated in time: (rate_m_q = ((m_inf - m_q) / m_tau))
      ```
    • Brent Huisman's avatar
      v0.8.1 postrelease (#2074) · 29166744
      Brent Huisman authored
  2. Dec 22, 2022
  3. Dec 21, 2022
    • Benjamin Cumming's avatar
      Silence spurious unused variable warnings in generated code (#2073) · 2d7c9195
      Benjamin Cumming authored
      `[[maybe_unused]]` in generated code to silence warnings for mechanisms
      with `net_receive` methods that do not use the connection weight.
    • Thorsten Hater's avatar
      Better handling of powers in modcc. (#2061) · fbd41184
      Thorsten Hater authored
      - $x^{-1} \Rightarrow 1/x\quad \forall x$
      - $x^n \Rightarrow x\cdot \dots \cdot x \quad x\in N; |x| < 5$
      - $x^n \Rightarrow 1/(x\cdot \dots \cdot x) \quad x\in N; |x| < 5; x <
      0$
      - $b^e \Rightarrow \exp(\log(b) e)\quad \forall  b, e$
      
      The last point introduces potential errors when `pow(b, e)` is allowed,
      but `log(b)` is
      undefined. These occur exactly when all of the following is true
      - $b < 0$
      - $e\in N$
      - $e$, $b$ not known at compile time (since we cover these cases before)
  4. Dec 15, 2022
  5. Dec 14, 2022
  6. Dec 12, 2022
  7. Dec 06, 2022
  8. Nov 28, 2022
  9. Nov 23, 2022
  10. Nov 22, 2022
    • boeschf's avatar
      spack gpu option (#2043) · 45de1ab3
      boeschf authored
      added conditional variant for cuda builds to enable GPU-based random number generation
    • boeschf's avatar
      simplify make catalogue (#2042) · 9797403e
      boeschf authored
      - unit tests and some examples build their own mechanism catalogue
      - repeated logic for detecting GPUs, passing compile time flags
      - leverage the cmake variables and targets which are already there since these catalogues are internal to arbor
      - build a static library with mechanisms, which links to arbor-private-deps
  11. Nov 21, 2022
    • Thorsten Hater's avatar
      :zap: Voltage Processes (#2033) · b63cca1c
      Thorsten Hater authored
      Add the VOLTAGE_PROCESS mechanism kind to modcc, allowing for direct writing to the membrane voltage
      Obviously these are extremely sharp tools and can break the cable model, so we add some constraints to their
      use (see docs). Still, user discretion is required.
      
      As a sneak peek for what this might be useful for
      
      * implementing voltage clamps
      * limiting membrane voltage (irritatingly also a kind of clamping)
      * faking ABSTRACT_CELL like behaviour (although that might require a bit more work)
      
      Closes #1343
  12. Nov 18, 2022
  13. Nov 17, 2022
    • boeschf's avatar
      Additional builtin functions to Arbor's NMODL dialect (#2035) · eaddc738
      boeschf authored
      Added common math functions which I came across in the wild quite frequently. Implementations may be more optimized than hand-rolled versions.
      
      - sqrt: usual square root
      - step_right: right-continuous heaviside step function
      - step_left: left-continuous heaviside step function
      - step: heaviside step function with half step at 0
      - signum: sign bit function
      - extended iexpr with the step_left, step_right variants
    • boeschf's avatar
      BUGFIX: add ARB_CUDA flag to example catalogue (#2039) · ff3494ec
      boeschf authored
      fix ornstein_uhlenbeck example on gpu:
      - use make_catalogue instead of make_catalogue_standalone
      - link to arbor-private-deps
      - mark all files as c++ sources when using cuda-clang or hip-clang
  14. Nov 15, 2022
  15. Nov 10, 2022
  16. Nov 08, 2022
  17. Nov 03, 2022
  18. Nov 02, 2022
  19. Nov 01, 2022
    • Thorsten Hater's avatar
      Make LIF cells probeable. (#2021) · 3106ff78
      Thorsten Hater authored
      * Functionality
        * Add probes to LIF cells.
      * Docs
        * Remove errorneous statement(s) about LIF cells (there never was an E_reset...)
        * Move probing chapter one level up (concepts/cable_cells -> concepts)
      * Tests
        * Add tests for LIF probes
  20. Oct 27, 2022
    • Thorsten Hater's avatar
      Add a plethora of config options to a-b-c. (#1958) · 81096351
      Thorsten Hater authored
      Closes #1861 
      Closes #1783 
      
      - arbor-build-catalogue (a-b-c) does no longer need to be in a fixed location
      - nor do we statically fix the configuration for a-b-c
      - instead, we rely on `arbor.config` to read the relevant default values
      - each value can be overriden, if desired
      - added many more values to the configuration
        - gpu type and arch
        - paths and prefix 
        - CXX
      - report default settings for better diagnosis
      - implement a fallback for prefix if that does not exist; in particular for the amazing skbuild.
      
      In essence you can now use a-b-c as a standalone tool, as long as you have a properly 
      configured py-arbor.
      
      Example output after removing `_skbuild`
      ```
      Warning: prefix '/Users/hater/src/arbor/_skbuild/macosx-11.0-x86_64-3.10/cmake-install' does not exist, falling back to '/Users/hater/src/arbor/.direnv/python-3.10.6'.
      usage: arbor-build-catalogue catalogue_name mod_source_dir
      
      Generate dynamic catalogue and build it into ...
  21. Oct 26, 2022
  22. Oct 25, 2022