1. 10 Apr, 2019 1 commit
  2. 09 Apr, 2019 5 commits
  3. 02 Apr, 2019 1 commit
    • Swann Perarnau's avatar
      [style/refactor] posixify error handling · e243f7eb
      Swann Perarnau authored
      In POSIX land, error codes are positive integers, returned by functions
      as a negative value, but assigned to errno as a positive value.
      
      Use that chance to checkpatch the files.
      e243f7eb
  4. 01 Apr, 2019 2 commits
  5. 29 Mar, 2019 3 commits
  6. 27 Mar, 2019 1 commit
  7. 26 Mar, 2019 3 commits
  8. 25 Mar, 2019 1 commit
  9. 22 Mar, 2019 1 commit
    • Swann Perarnau's avatar
      [refactor] use autoconf + m4 for version mngmt · d8803390
      Swann Perarnau authored
      Use m4 to define autoconf-level version variables, following the naming
      scheme of semver.org
      
      To make use of these variables in the headers and sources, a
      generated-header is added in aml/utils/version.h
      
      Also add a simple test for that part of the lib.
      d8803390
  10. 21 Mar, 2019 4 commits
  11. 20 Mar, 2019 2 commits
  12. 14 Mar, 2019 1 commit
  13. 13 Mar, 2019 2 commits
  14. 08 Mar, 2019 1 commit
    • Swann Perarnau's avatar
      [fix] Embed custom jemalloc into libaml · ac85bab6
      Swann Perarnau authored
      Force libtool to static link the PIC version of our jemalloc import into
      libaml, making libaml standalone. This requires us to test some
      additional libraries in our own configure (pthread, and dlopen).
      
      This also solves the long-standing issue of `make check` only working after
      `make install`, while removing our custom jemalloc from the installed
      libraries.
      
      Fixes #26.
      ac85bab6
  15. 15 Feb, 2019 1 commit
  16. 27 Aug, 2018 1 commit
    • Swann Perarnau's avatar
      [feature/refactor] add tileid function · 55500ab0
      Swann Perarnau authored
      Instead of asking the user to provide the offsets into a tiling, add a
      function providing a tileid. This tileid corresponds to the in-memory
      order of tiles, making the tilestart functions a lot simpler.
      
      We still need to split the tileid for tilestart because scratchpads
      create requests based on tileids.
      
      Also add a unit test for tiling_2d, to make sure we're not doing
      anything crazy.
      55500ab0
  17. 24 Aug, 2018 1 commit
  18. 20 Aug, 2018 2 commits
  19. 06 Aug, 2018 4 commits
    • Swann Perarnau's avatar
      [fix] Align mbind arguments properly. · 30d3840a
      Swann Perarnau authored
      mbind requires that the input ptr be aligned on a page.
      
      NOTE: we could also figure out a way to ask jemalloc
      for page-aligned allocations, but that would probably
      be too much for each alloc.
      30d3840a
    • Swann Perarnau's avatar
      [fix] Force mbind on allocation from arena · 759ec35a
      Swann Perarnau authored
      The way jemalloc handles big allocations can often result in surprising
      calls to mmap/mbind (splitting allocations, rounded up sizes). It also
      makes the path between an aml_alloc and mbind quite difficult to see.
      More worrying, if jemalloc reuses a previous allocation, the mbind will
      not be called again, which might result in the wrong binding happening.
      
      To fix those issues, we move the mbind logic to be around the
      allocations returned from jemalloc. This will ensure that we always bind
      properly. The only issue is that it might slow down allocations.
      
      It can also cause issues if the same arena is used by multiple areas, as
      allocations might be overlapping a page. We will move away from sharing
      arenas for benchmarks from now on.
      759ec35a
    • Swann Perarnau's avatar
      [feature/fix] add column-major 2D tiling · 9764f3c6
      Swann Perarnau authored
      Fix dgemm_noprefetch to match pattern from @suchyb in #19.
      In order to do so we split our 2d tiling into column-major and
      row-major ones. Note that those are refering to the order of the tiles,
      not the internal data of a tile, as a tiling should be agnostic to it.
      9764f3c6
    • Swann Perarnau's avatar
      [feature] add 2d tiling of contiguous tiles · 508c4695
      Swann Perarnau authored
      Add a tiling representing a 2d array of contiguous tiles. Also add a
      ndims function to retrieve the dimensions in tiles of the tiling.
      
      It also became quite obvious that the iterators are useless right now.
      We should think about changing that.
      508c4695
  20. 30 Jul, 2018 1 commit
  21. 25 Jul, 2018 2 commits
    • Brian Suchy's avatar
      [feature] add 2D tiling, additional methods. · a13ddad2
      Brian Suchy authored
      Implement a 2D tiling with continuous tiles in memory, with tiles
      organized in row-major order inside the virtual address range.
      
      Also adds functions to query the size of a tile inside the tiling.
      a13ddad2
    • Swann Perarnau's avatar
      [fix] Avoid conflicts when jemalloc is used twice · c1ec7da8
      Swann Perarnau authored
      When a code using aml is also linking against jemalloc, errors can occur
      because we use the default jemk prefix for the aml specific jemalloc
      install. To fix these issues, we instead use a prefix aml-specific.
      
      Discovered when using mkl on a knl box.
      c1ec7da8