1. 25 Jul, 2018 3 commits
    • Brian Suchy's avatar
      [feature] add matrix multiply benchmarks · 2c452094
      Brian Suchy authored
      Implement 3 dgemm benchmarks versions:
      - standard mkl code on total matrix
      - prefetch scheme based on UTK/INRIA/ANL on-going collaboration
      - same tiling but no prefetch version of the code
      
      This is the version ready for merging, after several weeks of work on
      independant branch. Further improvements to API/code will continue after
      it reaches master.
      2c452094
    • 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
  2. 24 Jul, 2018 2 commits
  3. 20 Jul, 2018 1 commit
    • Swann Perarnau's avatar
      [refactor] move functional tests, proper OpenMP · 51167d12
      Swann Perarnau authored
      We are starting to work on benchmarks to evaluate the usefulness of this
      library. Instead of integrating them into the testing infrastructure, it
      makes more sense for them to have their own directory and a different
      way of handling them.
      
      This patch:
       - creates a benchmark directory for actual codes that we want to use as
         benchmarks of our library.
       - moves functional tests into it.
       - add proper OpenMP detection for these codes
      51167d12
  4. 05 Jul, 2018 1 commit
  5. 02 Jul, 2018 3 commits
  6. 26 Jun, 2018 1 commit
  7. 23 May, 2018 1 commit
    • Swann Perarnau's avatar
      [feature] add gitlab CI pipeline · bce9e3ee
      Swann Perarnau authored
      Simple gitlab-ci config with a single step, running the full list of
      configure, make, make install and make check.
      
      No tags, no split build and test for now, as artifacts are a bit tricky
      to get right.
      
      This config should grow in the future to ensure that we run all the test
      on all the platforms we want.
      bce9e3ee
  8. 30 Mar, 2018 6 commits
    • Swann Perarnau's avatar
      [fix] enforce type convertion, better pointer management · 54d0b418
      Swann Perarnau authored
      Fix small issues with type convertion across several tests,
      as a change of architecture might trigger bad behavior in
      variadic functions.
      54d0b418
    • Swann Perarnau's avatar
      [fix] unlocks are too early in dma_linux_* · c445b498
      Swann Perarnau authored
      We were unlocking the dma before the request type get set to a
      proper value, resulting in requests sometimes overlapping when
      multiple threads were used in benchmarks.
      c445b498
    • Swann Perarnau's avatar
      [test] add openmp version of mt stream_add · 956d9453
      Swann Perarnau authored
      This is a second type of use for the scratchpad: a single master
      thread is responsible for launching all data movements, but the tiles
      are worked on in parallel. We support this model by using a sequential
      scratch on top of a parallel dma.
      956d9453
    • Swann Perarnau's avatar
      [refactor] add openmp version of stream_add_pth · 21d3724e
      Swann Perarnau authored
      Add openmp version of the previous functional test. We also rename them,
      to mark the fact that those two tests are designed to use a *single-thread*
      to run the kernel across an entire tile.
      21d3724e
    • Swann Perarnau's avatar
      [refactor] make use of functional tests again · f47dc685
      Swann Perarnau authored
      This patch reintroduce the first functional test, a stream add
      implementation using pthreads for parallelism. We make use of our
      scratch_par implementation to implement a pipelined version of the
      application, where each worker thread is using its own batch of tiles,
      and migrating data asynchronously.
      f47dc685
    • Swann Perarnau's avatar
      [feature] add function to release a scratch tile · 7260868d
      Swann Perarnau authored
      When a user doesn't need a tile to be pushed back into the scratchpad,
      it is better to just `release` that tile instead. This is particularly
      useful for read-only data for applications that are bandwidth limited.
      7260868d
  9. 29 Mar, 2018 2 commits
  10. 28 Mar, 2018 7 commits
    • Swann Perarnau's avatar
      [feature] make scratch_par thread-safe · 1e1f1ced
      Swann Perarnau authored
      Add mutex to make request creation and destruction thread-safe. As for
      scratch_seq, we need to deal both with requests and tiles during these
      functions, so we lock the entire section.
      1e1f1ced
    • Swann Perarnau's avatar
      [feature] make scratch_seq thread-safe · cd9dba51
      Swann Perarnau authored
      Add mutex to make request creation and destruction thread-safe. As we
      need to deal both we requests and tiles during these functions, we lock
      the entire section.
      cd9dba51
    • Swann Perarnau's avatar
      [feature] make dma_linux_par thread-safe · 7a69c840
      Swann Perarnau authored
      Add mutex to make request creation and destruction thread-safe. Same as
      dma_linux_seq, the changes are quite simple, as we only need to protect
      modifications to the requests array.
      7a69c840
    • Swann Perarnau's avatar
      [feature] make dma_linux_seq thread-safe · 9f2b685d
      Swann Perarnau authored
      Add a mutex to make request creation and destruction thread-safe. As the
      code here is quite simple, we only need to protect modifications to the
      request array.
      9f2b685d
    • Swann Perarnau's avatar
      [refactor] remove extra tiling from request · b52f0e52
      Swann Perarnau authored
      scratch_request_seq contains one extra tiling that is unnecessary.
      Remove it.
      b52f0e52
    • Swann Perarnau's avatar
      [refactor] remove unnecessary data from request · 22063684
      Swann Perarnau authored
      The request type contains two much stuff, remove extra pointers to win
      some space.
      22063684
    • Swann Perarnau's avatar
      [feature] add a pthread based scratchpad · fa51aea5
      Swann Perarnau authored
      Add a scratchpad that creates one pthread per request, to call
      synchronous dma operations.
      
      The intent is to end up with a cross product of programming language
      support between dma and scratch:
      - scratch_par + dma_seq gives users parallel scratch requests
      - scratch_seq + dma_par gives users sequential access to parallel moves
      
      The two other options don't make as much sense though.
      fa51aea5
  11. 27 Mar, 2018 3 commits
    • Swann Perarnau's avatar
      [refactor] use vector in scratch · 20354336
      Swann Perarnau authored
      Replace custom code with generic vectors for the scratch implementation.
      In the process, fix a bug in the management of tiles, as they were being
      freed on pull completion, which is wrong.
      20354336
    • Swann Perarnau's avatar
      [refactor] use request vector for dma · 61160adf
      Swann Perarnau authored
      Use the newly introduced vector type to manage requests inside dmas.
      This cleans up the API a bit, and remove dubious ops from the dma
      internals.
      61160adf
    • Swann Perarnau's avatar
      [feature] add generic vector type to library · 72c8508d
      Swann Perarnau authored
      Add a generic vector type to the library, with some special features:
      - the elements are embedded in the vector, and not pointers
      - each element must include an int field that is used as a "key"
      - the element has a "null" value for its key, used to indicate that this
      element of the vector is null.
      - add/remove functions provide access to a new element/free it from the
      vector, but don't "destroy" it.
      - resize on add is exponential.
      
      This patch includes implementation and unit test.
      72c8508d
  12. 26 Mar, 2018 2 commits
    • Swann Perarnau's avatar
      [feature] make scratchpad track its own tiles · be88fe46
      Swann Perarnau authored
      Move the scratchpad tiles into an internal concern:
      - the scratchpad does the allocation
      - the scratchpad tracks available tiles internally
      - the user can ask for the scratch baseptr.
      
      This is necessary to abstract move-based scratchs, and to remove from the
      user responsibility of maintaining tiling and baseptr tracking.
      
      We still fail-hard when tiles are not available, and the design is not
      thread safe. But we are getting there.
      be88fe46
    • Swann Perarnau's avatar
      [feature] add sequential, copy-based scratchpad · 73b57ae5
      Swann Perarnau authored
      This is the initial implementation and validation of a scratchpad: a
      logic unit that handles tracking data across a "main" area and a
      "scratch" area.
      
      The API and internals will probably change again soon, as there's no
      clear way to implement a move based scratchpad on this one.
      
      Note that this implementation doesn't do any tracking, not really, and
      that's the next step.
      73b57ae5
  13. 23 Mar, 2018 5 commits
    • Kamil Iskra's avatar
      [feature] support offsets for file mappings · b698c7eb
      Kamil Iskra authored
      Replace the unused "max" argument for file-based mappings with an offset
      argument (until now the offset was hardcoded to 0).
      b698c7eb
    • Swann Perarnau's avatar
      [test] add working test for dma_linux_par · 12e946e0
      Swann Perarnau authored
      Add working implementation of copy and move to dma_linux_par, and
      corresponding unit test.
      12e946e0
    • Swann Perarnau's avatar
      [fix] fix typos across dma_seq code · 7bfa666c
      Swann Perarnau authored
      Fix a few typos in the dma_linux_seq code, that for some reason didn't
      raise any flags so far. Also add a small validation to the unit test.
      7bfa666c
    • Swann Perarnau's avatar
      [feature] add parallel, on-demand dma · 428ec530
      Swann Perarnau authored
      Add a dma that spawns a fixed amount of theads for each request created.
      The number of threads is configured at dma creation time.
      428ec530
    • Swann Perarnau's avatar
      [refactor] remove generic functions from requests · 0a66735a
      Swann Perarnau authored
      This patch refactors dma request types to remove generic function
      pointers from the library. This include modifying the linux_seq
      implementation to:
      - move the copy/move implementation to the dma ops
      - remove one layer of indirection, as the request type no longer need
      _data and _ops substructures.
      
      Enforcing dma requests to have a fully qualified generic type, with
      function pointers, will cause issues for future kinds of dma
      implementation, that might require a different way of handling requests
      altogether.
      
      This work is driven by our current work on a parallel dma implementation.
      0a66735a
  14. 22 Mar, 2018 3 commits