- 23 Aug, 2019 1 commit
-
-
Nicolas Denoyelle authored
New area allow to allocate data on cuda devices. Allocation optionally include the ability to map host memory on device memory. See cuda area documentation. Includes libtool helper to link cuda device object files with the remaining of the library. An additional error code has been added to aml errors for handling busy cuda devices Also, all CI stages as been set not to run on branches name starting with wip.
-
- 22 Aug, 2019 3 commits
-
-
Swann Perarnau authored
Now that only one type of request is allowed (layouts), remove va_args for the DMA API, making it significantly cleaner. Fix #49.
-
Swann Perarnau authored
Remove support for direct pointers in a DMA request, with the goal to remove va_args in the entire DMA API soon. As scratchs still work with pointers, also modify scratchs to convert tiles in layouts.
-
Swann Perarnau authored
This reverts commit 04315e6e. Not needed since vector doesn't contain the actual inner type.
-
- 21 Aug, 2019 3 commits
-
-
Swann Perarnau authored
Various fixes related to dma API, missing validation on arguments, pthread management and so on.
-
Swann Perarnau authored
Unit tests were missing a few corner cases on dense_create. In particular, there was a bug in the handling of the NULL pitch.
-
Swann Perarnau authored
The bitmap tests were slowing down the entire pipeline, while at the same time missing important checks on the inputs. This version is a bit more exhaustive, while also speeding up the test by only checking the corner-cases (first bits, last bits, partial ranges, overlapping ranges).
-
- 20 Aug, 2019 2 commits
-
-
Swann Perarnau authored
Since vector resize can cause pointers into the vector to become invalid, this patch introduces a level of indirection for DMAs and Scratchs, using uuid on the user-side of a request to index into the request vector.
-
Swann Perarnau authored
We need the vector type used for all our "command queues" to be able to maintain pointers to the inner data structure across reallocs of the vector itself. The resulting change just uses independent callocs for each pointer to a data element.
-
- 13 Aug, 2019 1 commit
-
-
Swann Perarnau authored
Refactor the DMA API to work on layouts internally. The resulting code ends up simpler for most cases, as long as we add a generic copy function. One things missing: - a good API to expose the collection of copy functions we have. One question not solved: - should the DMA ask for a copy function on each operation ?
-
- 07 Aug, 2019 2 commits
-
-
Swann Perarnau authored
Layout are a bit more complex as they contain extra arrays at the end of the struct, so new macros are required.
-
Swann Perarnau authored
Use the newly added INNER_MALLOC for all the relevant creators.
-
- 06 Aug, 2019 1 commit
-
-
Nicolas Denoyelle authored
Add new building block describing how data is organized in memory.
-
- 15 Jul, 2019 1 commit
-
-
Swann Perarnau authored
Removes static allocations of all objects from the library. While this will make our code less compact in theory, this part of the API is too confusing for new users.
-
- 02 Jul, 2019 8 commits
-
-
ndenoyelle authored
Adapted to the new master from a patch sent by @cfoyer When building out of tree as the, make sure that target refer to relative paths. This commit also clean-up the usage of the flags and defines a per-target definition of flags (can be changed for a AM_CPPFLAGS if the global definition is good enough). Signed-off-by:
Clement Foyer <cfoyer@cray.com> Also adds Clement to the authors list.
-
Swann Perarnau authored
Recursive makefiles do not propagation automake flags (AM_CFLAGS), making the proper configuration of the whole build chain more complex than it needs to be. This patch goes back to a single makefile.am in src, simplifying the build quite a bit.
-
Swann Perarnau authored
There's an actual bugfix on tilings in there, as well as extra type mismatches.
-
Swann Perarnau authored
Less than perfect types for the most part, plus a few unused variables.
-
Swann Perarnau authored
Some string.h definitions only appear if _GNU_SOURCE is defined, which is done for us in config.h. As usual, only include this in the .c files, and first in the header.
-
Swann Perarnau authored
Vector implementation was lacking some rigor. Note that it is a bit tricky to use an int for the `na` element and size_t for an index.
-
Swann Perarnau authored
-
Swann Perarnau authored
Caught by a fun warning about weird function-pointer-to-int conversion.
-
- 28 Jun, 2019 1 commit
-
-
Nicolas Denoyelle authored
Pretty straightforward. Close #43.
-
- 27 Jun, 2019 1 commit
-
-
Swann Perarnau authored
MAP_ANONYMOUS is only visible in _GNU_SOURCE code. Ensure the config header is included first so that this symbol appears.
-
- 10 Apr, 2019 2 commits
-
-
Swann Perarnau authored
Last bit of API lacking consistency.
-
Swann Perarnau authored
Implement #31 for vector. Improve error management. Checkpatch vector.
-
- 09 Apr, 2019 5 commits
-
-
Swann Perarnau authored
Implement #31 for tiling. Improve error management. Checkpatch tiling.
-
Swann Perarnau authored
Implement #31 for scratch. Improve error management. Checkpatch scratch.
-
Swann Perarnau authored
Implement #31 for dma. Improve error management. Checkpatch dma
-
Swann Perarnau authored
Implement #31 for bitmap. Extra init/fini function for API consistency, but not needed. Checkpatch another header.
-
Swann Perarnau authored
Convert area/area_linux to new error handler. Implement #31 for area. Checkpatch area Note that area_linux is still using a dynamic data structure no matter what: a bitmask to the set of authorized nodes. The conversion to aml_bitmap wouldn't help as there's no default value available for all nodes on that type (similar to numa_all_nodes_ptr).
-
- 02 Apr, 2019 1 commit
-
-
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.
-
- 01 Apr, 2019 2 commits
-
-
Swann Perarnau authored
checkpatch is the linter from the Linux kernel. This should provide a good amount of validation on the codestyle of the repo. Only goes on main header and basic c file for now.
-
Swann Perarnau authored
The source repo has been reorganized, but the repoquality checks were not updated. Also make sure that style checks happen early, to fail the CI quickly.
-
- 29 Mar, 2019 3 commits
-
-
Swann Perarnau authored
Same as the rest.
-
Swann Perarnau authored
We're starting to agree on one main header for all the generic APIs of building blocks, struct definitions included, and one header per specific implementation. Improve the spelling while we're at it.
-
Nicolas Denoyelle authored
-
- 27 Mar, 2019 1 commit
-
-
Nicolas Denoyelle authored
-
- 26 Mar, 2019 2 commits
-
-
Swann Perarnau authored
Since we removed `move` from the dma API, bindings are now useless.
-
Swann Perarnau authored
Poorly supported feature that doesn't play well with the rest of the library and limits what we can do in the future.
-