xref: /libCEED/doc/sphinx/source/releasenotes.md (revision bcb2dfae4c301ddfdddf58806f08f6e7d17f4ea5)
1# Changes/Release Notes
2
3On this page we provide a summary of the main API changes, new features and examples
4for each release of libCEED.
5
6(main)=
7
8## Current `main` branch
9
10### Maintainability
11
12- Refactored preconditioner support internally to facilitate future development and improve GPU completeness/test coverage.
13
14(v0-9)=
15
16## v0.9 (Jul 6, 2021)
17
18### Interface changes
19
20- Minor modification in error handling macro to silence pedantic warnings when compiling with Clang, but no functional impact.
21
22### New features
23
24- Add {c:func}`CeedVectorAXPY` and {c:func}`CeedVectorPointwiseMult` as a convenience for stand-alone testing and internal use.
25- Add `CEED_QFUNCTION_HELPER` macro to properly annotate QFunction helper functions for code generation backends.
26- Add `CeedPragmaOptimizeOff` macro for code that is sensitive to floating point errors from fast math optimizations.
27- Rust support: split `libceed-sys` crate out of `libceed` and [publish both on crates.io](https://crates.io/crates/libceed).
28
29### Performance improvements
30
31### Examples
32
33- Solid mechanics mini-app updated to explore the performance impacts of various formulations in the initial and current configurations.
34- Fluid mechanics example adds GPU support and improves modularity.
35
36### Deprecated backends
37
38- The `/cpu/self/tmpl` and `/cpu/self/tmpl/sub` backends have been removed. These backends were intially added to test the backend inheritance mechanism, but this mechanism is now widely used and tested in multiple backends.
39
40(v0-8)=
41
42## v0.8 (Mar 31, 2021)
43
44### Interface changes
45
46- Error handling improved to include enumerated error codes for C interface return values.
47- Installed headers that will follow semantic versioning were moved to {code}`include/ceed` directory. These headers have been renamed from {code}`ceed-*.h` to {code}`ceed/*.h`. Placeholder headers with the old naming schema are currently provided, but these headers will be removed in the libCEED v0.9 release.
48
49### New features
50
51- Julia and Rust interfaces added, providing a nearly 1-1 correspondence with the C interface, plus some convenience features.
52- Static libraries can be built with `make STATIC=1` and the pkg-config file is installed accordingly.
53- Add {c:func}`CeedOperatorLinearAssembleSymbolic` and {c:func}`CeedOperatorLinearAssemble` to support full assembly of libCEED operators.
54
55### Performance improvements
56
57- New HIP MAGMA backends for hipMAGMA library users: `/gpu/hip/magma` and `/gpu/hip/magma/det`.
58- New HIP backends for improved tensor basis performance: `/gpu/hip/shared` and `/gpu/hip/gen`.
59
60### Examples
61
62- {ref}`example-petsc-elasticity` example updated with traction boundary conditions and improved Dirichlet boundary conditions.
63- {ref}`example-petsc-elasticity` example updated with Neo-Hookean hyperelasticity in current configuration as well as improved Neo-Hookean hyperelasticity exploring storage vs computation tradeoffs.
64- {ref}`example-petsc-navier-stokes` example updated with isentropic traveling vortex test case, an analytical solution to the Euler equations that is useful for testing boundary conditions, discretization stability, and order of accuracy.
65- {ref}`example-petsc-navier-stokes` example updated with support for performing convergence study and plotting order of convergence by polynomial degree.
66
67(v0-7)=
68
69## v0.7 (Sep 29, 2020)
70
71### Interface changes
72
73- Replace limited {code}`CeedInterlaceMode` with more flexible component stride {code}`compstride` in {code}`CeedElemRestriction` constructors.
74  As a result, the {code}`indices` parameter has been replaced with {code}`offsets` and the {code}`nnodes` parameter has been replaced with {code}`lsize`.
75  These changes improve support for mixed finite element methods.
76- Replace various uses of {code}`Ceed*Get*Status` with {code}`Ceed*Is*` in the backend API to match common nomenclature.
77- Replace {code}`CeedOperatorAssembleLinearDiagonal` with {c:func}`CeedOperatorLinearAssembleDiagonal` for clarity.
78- Linear Operators can be assembled as point-block diagonal matrices with {c:func}`CeedOperatorLinearAssemblePointBlockDiagonal`, provided in row-major form in a {code}`ncomp` by {code}`ncomp` block per node.
79- Diagonal assemble interface changed to accept a {ref}`CeedVector` instead of a pointer to a {ref}`CeedVector` to reduce memory movement when interfacing with calling code.
80- Added {c:func}`CeedOperatorLinearAssembleAddDiagonal` and {c:func}`CeedOperatorLinearAssembleAddPointBlockDiagonal` for improved future integration with codes such as MFEM that compose the action of {ref}`CeedOperator`s external to libCEED.
81- Added {c:func}`CeedVectorTakeAray` to sync and remove libCEED read/write access to an allocated array and pass ownership of the array to the caller.
82  This function is recommended over {c:func}`CeedVectorSyncArray` when the {code}`CeedVector` has an array owned by the caller that was set by {c:func}`CeedVectorSetArray`.
83- Added {code}`CeedQFunctionContext` object to manage user QFunction context data and reduce copies between device and host memory.
84- Added {c:func}`CeedOperatorMultigridLevelCreate`, {c:func}`CeedOperatorMultigridLevelCreateTensorH1`, and {c:func}`CeedOperatorMultigridLevelCreateH1` to facilitate creation of multigrid prolongation, restriction, and coarse grid operators using a common quadrature space.
85
86### New features
87
88- New HIP backend: `/gpu/hip/ref`.
89- CeedQFunction support for user `CUfunction`s in some backends
90
91### Performance improvements
92
93- OCCA backend rebuilt to facilitate future performance enhancements.
94- Petsc BPs suite improved to reduce noise due to multiple calls to {code}`mpiexec`.
95
96### Examples
97
98- {ref}`example-petsc-elasticity` example updated with strain energy computation and more flexible boundary conditions.
99
100### Deprecated backends
101
102- The `/gpu/cuda/reg` backend has been removed, with its core features moved into `/gpu/cuda/ref` and `/gpu/cuda/shared`.
103
104(v0-6)=
105
106## v0.6 (Mar 29, 2020)
107
108libCEED v0.6 contains numerous new features and examples, as well as expanded
109documentation in [this new website](https://libceed.readthedocs.io).
110
111### New features
112
113- New Python interface using [CFFI](https://cffi.readthedocs.io/) provides a nearly
114  1-1 correspondence with the C interface, plus some convenience features.  For instance,
115  data stored in the {cpp:type}`CeedVector` structure are available without copy as
116  {py:class}`numpy.ndarray`.  Short tutorials are provided in
117  [Binder](https://mybinder.org/v2/gh/CEED/libCEED/main?urlpath=lab/tree/examples/tutorials/).
118- Linear QFunctions can be assembled as block-diagonal matrices (per quadrature point,
119  {c:func}`CeedOperatorAssembleLinearQFunction`) or to evaluate the diagonal
120  ({c:func}`CeedOperatorAssembleLinearDiagonal`).  These operations are useful for
121  preconditioning ingredients and are used in the libCEED's multigrid examples.
122- The inverse of separable operators can be obtained using
123  {c:func}`CeedOperatorCreateFDMElementInverse` and applied with
124  {c:func}`CeedOperatorApply`.  This is a useful preconditioning ingredient,
125  especially for Laplacians and related operators.
126- New functions: {c:func}`CeedVectorNorm`, {c:func}`CeedOperatorApplyAdd`,
127  {c:func}`CeedQFunctionView`, {c:func}`CeedOperatorView`.
128- Make public accessors for various attributes to facilitate writing composable code.
129- New backend: `/cpu/self/memcheck/serial`.
130- QFunctions using variable-length array (VLA) pointer constructs can be used with CUDA
131  backends.  (Single source is coming soon for OCCA backends.)
132- Fix some missing edge cases in CUDA backend.
133
134### Performance Improvements
135
136- MAGMA backend performance optimization and non-tensor bases.
137- No-copy optimization in {c:func}`CeedOperatorApply`.
138
139### Interface changes
140
141- Replace {code}`CeedElemRestrictionCreateIdentity` and
142  {code}`CeedElemRestrictionCreateBlocked` with more flexible
143  {c:func}`CeedElemRestrictionCreateStrided` and
144  {c:func}`CeedElemRestrictionCreateBlockedStrided`.
145- Add arguments to {c:func}`CeedQFunctionCreateIdentity`.
146- Replace ambiguous uses of {cpp:enum}`CeedTransposeMode` for L-vector identification
147  with {cpp:enum}`CeedInterlaceMode`.  This is now an attribute of the
148  {cpp:type}`CeedElemRestriction` (see {c:func}`CeedElemRestrictionCreate`) and no
149  longer passed as `lmode` arguments to {c:func}`CeedOperatorSetField` and
150  {c:func}`CeedElemRestrictionApply`.
151
152### Examples
153
154libCEED-0.6 contains greatly expanded examples with {ref}`new documentation <Examples>`.
155Notable additions include:
156
157- Standalone {ref}`ex2-surface` ({file}`examples/ceed/ex2-surface`): compute the area of
158  a domain in 1, 2, and 3 dimensions by applying a Laplacian.
159
160- PETSc {ref}`example-petsc-area` ({file}`examples/petsc/area.c`): computes surface area
161  of domains (like the cube and sphere) by direct integration on a surface mesh;
162  demonstrates geometric dimension different from topological dimension.
163
164- PETSc {ref}`example-petsc-bps`:
165
166  - {file}`examples/petsc/bpsraw.c` (formerly `bps.c`): transparent CUDA support.
167  - {file}`examples/petsc/bps.c` (formerly `bpsdmplex.c`): performance improvements
168    and transparent CUDA support.
169  - {ref}`example-petsc-bps-sphere` ({file}`examples/petsc/bpssphere.c`):
170    generalizations of all CEED BPs to the surface of the sphere; demonstrates geometric
171    dimension different from topological dimension.
172
173- {ref}`example-petsc-multigrid` ({file}`examples/petsc/multigrid.c`): new p-multigrid
174  solver with algebraic multigrid coarse solve.
175
176- {ref}`example-petsc-navier-stokes` ({file}`examples/fluids/navierstokes.c`; formerly
177  `examples/navier-stokes`): unstructured grid support (using PETSc's `DMPlex`),
178  implicit time integration, SU/SUPG stabilization, free-slip boundary conditions, and
179  quasi-2D computational domain support.
180
181- {ref}`example-petsc-elasticity` ({file}`examples/solids/elasticity.c`): new solver for
182  linear elasticity, small-strain hyperelasticity, and globalized finite-strain
183  hyperelasticity using p-multigrid with algebraic multigrid coarse solve.
184
185(v0-5)=
186
187## v0.5 (Sep 18, 2019)
188
189For this release, several improvements were made. Two new CUDA backends were added to
190the family of backends, of which, the new `cuda-gen` backend achieves state-of-the-art
191performance using single-source {ref}`CeedQFunction`. From this release, users
192can define Q-Functions in a single source code independently of the targeted backend
193with the aid of a new macro `CEED QFUNCTION` to support JIT (Just-In-Time) and CPU
194compilation of the user provided {ref}`CeedQFunction` code. To allow a unified
195declaration, the {ref}`CeedQFunction` API has undergone a slight change:
196the `QFunctionField` parameter `ncomp` has been changed to `size`. This change
197requires setting the previous value of `ncomp` to `ncomp*dim` when adding a
198`QFunctionField` with eval mode `CEED EVAL GRAD`.
199
200Additionally, new CPU backends
201were included in this release, such as the `/cpu/self/opt/*` backends (which are
202written in pure C and use partial **E-vectors** to improve performance) and the
203`/cpu/self/ref/memcheck` backend (which relies upon the
204[Valgrind](http://valgrind.org/) Memcheck tool to help verify that user
205{ref}`CeedQFunction` have no undefined values).
206This release also included various performance improvements, bug fixes, new examples,
207and improved tests. Among these improvements, vectorized instructions for
208{ref}`CeedQFunction` code compiled for CPU were enhanced by using `CeedPragmaSIMD`
209instead of `CeedPragmaOMP`, implementation of a {ref}`CeedQFunction` gallery and
210identity Q-Functions were introduced, and the PETSc benchmark problems were expanded
211to include unstructured meshes handling were. For this expansion, the prior version of
212the PETSc BPs, which only included data associated with structured geometries, were
213renamed `bpsraw`, and the new version of the BPs, which can handle data associated
214with any unstructured geometry, were called `bps`. Additionally, other benchmark
215problems, namely BP2 and BP4 (the vector-valued versions of BP1 and BP3, respectively),
216and BP5 and BP6 (the collocated versions---for which the quadrature points are the same
217as the Gauss Lobatto nodes---of BP3 and BP4 respectively) were added to the PETSc
218examples. Furthermoew, another standalone libCEED example, called `ex2`, which
219computes the surface area of a given mesh was added to this release.
220
221Backends available in this release:
222
223```{eval-rst}
224+----------------------------+-----------------------------------------------------+
225| CEED resource (``-ceed``)  | Backend                                             |
226+----------------------------+-----------------------------------------------------+
227| ``/cpu/self/ref/serial``   | Serial reference implementation                     |
228+----------------------------+-----------------------------------------------------+
229| ``/cpu/self/ref/blocked``  | Blocked reference implementation                    |
230+----------------------------+-----------------------------------------------------+
231| ``/cpu/self/ref/memcheck`` | Memcheck backend, undefined value checks            |
232+----------------------------+-----------------------------------------------------+
233| ``/cpu/self/opt/serial``   | Serial optimized C implementation                   |
234+----------------------------+-----------------------------------------------------+
235| ``/cpu/self/opt/blocked``  | Blocked optimized C implementation                  |
236+----------------------------+-----------------------------------------------------+
237| ``/cpu/self/avx/serial``   | Serial AVX implementation                           |
238+----------------------------+-----------------------------------------------------+
239| ``/cpu/self/avx/blocked``  | Blocked AVX implementation                          |
240+----------------------------+-----------------------------------------------------+
241| ``/cpu/self/xsmm/serial``  | Serial LIBXSMM implementation                       |
242+----------------------------+-----------------------------------------------------+
243| ``/cpu/self/xsmm/blocked`` | Blocked LIBXSMM implementation                      |
244+----------------------------+-----------------------------------------------------+
245| ``/cpu/occa``              | Serial OCCA kernels                                 |
246+----------------------------+-----------------------------------------------------+
247| ``/gpu/occa``              | CUDA OCCA kernels                                   |
248+----------------------------+-----------------------------------------------------+
249| ``/omp/occa``              | OpenMP OCCA kernels                                 |
250+----------------------------+-----------------------------------------------------+
251| ``/ocl/occa``              | OpenCL OCCA kernels                                 |
252+----------------------------+-----------------------------------------------------+
253| ``/gpu/cuda/ref``          | Reference pure CUDA kernels                         |
254+----------------------------+-----------------------------------------------------+
255| ``/gpu/cuda/reg``          | Pure CUDA kernels using one thread per element      |
256+----------------------------+-----------------------------------------------------+
257| ``/gpu/cuda/shared``       | Optimized pure CUDA kernels using shared memory     |
258+----------------------------+-----------------------------------------------------+
259| ``/gpu/cuda/gen``          | Optimized pure CUDA kernels using code generation   |
260+----------------------------+-----------------------------------------------------+
261| ``/gpu/magma``             | CUDA MAGMA kernels                                  |
262+----------------------------+-----------------------------------------------------+
263```
264
265Examples available in this release:
266
267```{eval-rst}
268+-------------------------+--------------------------------------------+
269| User code               | Example                                    |
270+-------------------------+--------------------------------------------+
271|                         | - ex1 (volume)                             |
272| ``ceed``                | - ex2 (surface)                            |
273+-------------------------+--------------------------------------------+
274|                         | - BP1 (scalar mass operator)               |
275| ``mfem``                | - BP3 (scalar Laplace operator)            |
276+-------------------------+--------------------------------------------+
277|                         | - BP1 (scalar mass operator)               |
278|                         | - BP2 (vector mass operator)               |
279|                         | - BP3 (scalar Laplace operator)            |
280| ``petsc``               | - BP4 (vector Laplace operator)            |
281|                         | - BP5 (collocated scalar Laplace operator) |
282|                         | - BP6 (collocated vector Laplace operator) |
283|                         | - Navier-Stokes                            |
284+-------------------------+--------------------------------------------+
285|                         | - BP1 (scalar mass operator)               |
286| ``nek5000``             | - BP3 (scalar Laplace operator)            |
287+-------------------------+--------------------------------------------+
288```
289
290(v0-4)=
291
292## v0.4 (Apr 1, 2019)
293
294libCEED v0.4 was made again publicly available in the second full CEED software
295distribution, release CEED 2.0. This release contained notable features, such as
296four new CPU backends, two new GPU backends, CPU backend optimizations, initial
297support for operator composition, performance benchmarking, and a Navier-Stokes demo.
298The new CPU backends in this release came in two families. The `/cpu/self/*/serial`
299backends process one element at a time and are intended for meshes with a smaller number
300of high order elements. The `/cpu/self/*/blocked` backends process blocked batches of
301eight interlaced elements and are intended for meshes with higher numbers of elements.
302The `/cpu/self/avx/*` backends rely upon AVX instructions to provide vectorized CPU
303performance. The `/cpu/self/xsmm/*` backends rely upon the
304[LIBXSMM](http://github.com/hfp/libxsmm) package to provide vectorized CPU
305performance. The `/gpu/cuda/*` backends provide GPU performance strictly using CUDA.
306The `/gpu/cuda/ref` backend is a reference CUDA backend, providing reasonable
307performance for most problem configurations. The `/gpu/cuda/reg` backend uses a simple
308parallelization approach, where each thread treats a finite element. Using just in time
309compilation, provided by nvrtc (NVidia Runtime Compiler), and runtime parameters, this
310backend unroll loops and map memory address to registers. The `/gpu/cuda/reg` backend
311achieve good peak performance for 1D, 2D, and low order 3D problems, but performance
312deteriorates very quickly when threads run out of registers.
313
314A new explicit time-stepping Navier-Stokes solver was added to the family of libCEED
315examples in the `examples/petsc` directory (see {ref}`example-petsc-navier-stokes`).
316This example solves the time-dependent Navier-Stokes equations of compressible gas
317dynamics in a static Eulerian three-dimensional frame, using structured high-order
318finite/spectral element spatial discretizations and explicit high-order time-stepping
319(available in PETSc). Moreover, the Navier-Stokes example was developed using PETSc,
320so that the pointwise physics (defined at quadrature points) is separated from the
321parallelization and meshing concerns.
322
323Backends available in this release:
324
325```{eval-rst}
326+----------------------------+-----------------------------------------------------+
327| CEED resource (``-ceed``)  | Backend                                             |
328+----------------------------+-----------------------------------------------------+
329| ``/cpu/self/ref/serial``   | Serial reference implementation                     |
330+----------------------------+-----------------------------------------------------+
331| ``/cpu/self/ref/blocked``  | Blocked reference implementation                    |
332+----------------------------+-----------------------------------------------------+
333| ``/cpu/self/tmpl``         | Backend template, defaults to ``/cpu/self/blocked`` |
334+----------------------------+-----------------------------------------------------+
335| ``/cpu/self/avx/serial``   | Serial AVX implementation                           |
336+----------------------------+-----------------------------------------------------+
337| ``/cpu/self/avx/blocked``  | Blocked AVX implementation                          |
338+----------------------------+-----------------------------------------------------+
339| ``/cpu/self/xsmm/serial``  | Serial LIBXSMM implementation                       |
340+----------------------------+-----------------------------------------------------+
341| ``/cpu/self/xsmm/blocked`` | Blocked LIBXSMM implementation                      |
342+----------------------------+-----------------------------------------------------+
343| ``/cpu/occa``              | Serial OCCA kernels                                 |
344+----------------------------+-----------------------------------------------------+
345| ``/gpu/occa``              | CUDA OCCA kernels                                   |
346+----------------------------+-----------------------------------------------------+
347| ``/omp/occa``              | OpenMP OCCA kernels                                 |
348+----------------------------+-----------------------------------------------------+
349| ``/ocl/occa``              | OpenCL OCCA kernels                                 |
350+----------------------------+-----------------------------------------------------+
351| ``/gpu/cuda/ref``          | Reference pure CUDA kernels                         |
352+----------------------------+-----------------------------------------------------+
353| ``/gpu/cuda/reg``          | Pure CUDA kernels using one thread per element      |
354+----------------------------+-----------------------------------------------------+
355| ``/gpu/magma``             | CUDA MAGMA kernels                                  |
356+----------------------------+-----------------------------------------------------+
357```
358
359Examples available in this release:
360
361```{eval-rst}
362+-------------------------+---------------------------------+
363| User code               | Example                         |
364+-------------------------+---------------------------------+
365| ``ceed``                | ex1 (volume)                    |
366+-------------------------+---------------------------------+
367|                         | - BP1 (scalar mass operator)    |
368| ``mfem``                | - BP3 (scalar Laplace operator) |
369+-------------------------+---------------------------------+
370|                         | - BP1 (scalar mass operator)    |
371| ``petsc``               | - BP3 (scalar Laplace operator) |
372|                         | - Navier-Stokes                 |
373+-------------------------+---------------------------------+
374|                         | - BP1 (scalar mass operator)    |
375| ``nek5000``             | - BP3 (scalar Laplace operator) |
376+-------------------------+---------------------------------+
377```
378
379(v0-3)=
380
381## v0.3 (Sep 30, 2018)
382
383Notable features in this release include active/passive field interface, support for
384non-tensor bases, backend optimization, and improved Fortran interface. This release
385also focused on providing improved continuous integration, and many new tests with code
386coverage reports of about 90%. This release also provided a significant change to the
387public interface: a {ref}`CeedQFunction` can take any number of named input and output
388arguments while {ref}`CeedOperator` connects them to the actual data, which may be
389supplied explicitly to `CeedOperatorApply()` (active) or separately via
390`CeedOperatorSetField()` (passive). This interface change enables reusable libraries
391of CeedQFunctions and composition of block solvers constructed using
392{ref}`CeedOperator`. A concept of blocked restriction was added to this release and
393used in an optimized CPU backend. Although this is typically not visible to the user,
394it enables effective use of arbitrary-length SIMD while maintaining cache locality.
395This CPU backend also implements an algebraic factorization of tensor product gradients
396to perform fewer operations than standard application of interpolation and
397differentiation from nodes to quadrature points. This algebraic formulation
398automatically supports non-polynomial and non-interpolatory bases, thus is more general
399than the more common derivation in terms of Lagrange polynomials on the quadrature points.
400
401Backends available in this release:
402
403```{eval-rst}
404+---------------------------+-----------------------------------------------------+
405| CEED resource (``-ceed``) | Backend                                             |
406+---------------------------+-----------------------------------------------------+
407| ``/cpu/self/blocked``     | Blocked reference implementation                    |
408+---------------------------+-----------------------------------------------------+
409| ``/cpu/self/ref``         | Serial reference implementation                     |
410+---------------------------+-----------------------------------------------------+
411| ``/cpu/self/tmpl``        | Backend template, defaults to ``/cpu/self/blocked`` |
412+---------------------------+-----------------------------------------------------+
413| ``/cpu/occa``             | Serial OCCA kernels                                 |
414+---------------------------+-----------------------------------------------------+
415| ``/gpu/occa``             | CUDA OCCA kernels                                   |
416+---------------------------+-----------------------------------------------------+
417| ``/omp/occa``             | OpenMP OCCA kernels                                 |
418+---------------------------+-----------------------------------------------------+
419| ``/ocl/occa``             | OpenCL OCCA kernels                                 |
420+---------------------------+-----------------------------------------------------+
421| ``/gpu/magma``            | CUDA MAGMA kernels                                  |
422+---------------------------+-----------------------------------------------------+
423```
424
425Examples available in this release:
426
427```{eval-rst}
428+-------------------------+---------------------------------+
429| User code               | Example                         |
430+-------------------------+---------------------------------+
431| ``ceed``                | ex1 (volume)                    |
432+-------------------------+---------------------------------+
433|                         | - BP1 (scalar mass operator)    |
434| ``mfem``                | - BP3 (scalar Laplace operator) |
435+-------------------------+---------------------------------+
436|                         | - BP1 (scalar mass operator)    |
437| ``petsc``               | - BP3 (scalar Laplace operator) |
438+-------------------------+---------------------------------+
439|                         | - BP1 (scalar mass operator)    |
440| ``nek5000``             | - BP3 (scalar Laplace operator) |
441+-------------------------+---------------------------------+
442```
443
444(v0-21)=
445
446## v0.21 (Sep 30, 2018)
447
448A MAGMA backend (which relies upon the
449[MAGMA](https://bitbucket.org/icl/magma) package) was integrated in libCEED for this
450release. This initial integration set up the framework of using MAGMA and provided the
451libCEED functionality through MAGMA kernels as one of libCEED’s computational backends.
452As any other backend, the MAGMA backend provides extended basic data structures for
453{ref}`CeedVector`, {ref}`CeedElemRestriction`, and {ref}`CeedOperator`, and implements
454the fundamental CEED building blocks to work with the new data structures.
455In general, the MAGMA-specific data structures keep the libCEED pointers to CPU data
456but also add corresponding device (e.g., GPU) pointers to the data. Coherency is handled
457internally, and thus seamlessly to the user, through the functions/methods that are
458provided to support them.
459
460Backends available in this release:
461
462```{eval-rst}
463+---------------------------+---------------------------------+
464| CEED resource (``-ceed``) | Backend                         |
465+---------------------------+---------------------------------+
466| ``/cpu/self``             | Serial reference implementation |
467+---------------------------+---------------------------------+
468| ``/cpu/occa``             | Serial OCCA kernels             |
469+---------------------------+---------------------------------+
470| ``/gpu/occa``             | CUDA OCCA kernels               |
471+---------------------------+---------------------------------+
472| ``/omp/occa``             | OpenMP OCCA kernels             |
473+---------------------------+---------------------------------+
474| ``/ocl/occa``             | OpenCL OCCA kernels             |
475+---------------------------+---------------------------------+
476| ``/gpu/magma``            | CUDA MAGMA kernels              |
477+---------------------------+---------------------------------+
478```
479
480Examples available in this release:
481
482```{eval-rst}
483+-------------------------+---------------------------------+
484| User code               | Example                         |
485+-------------------------+---------------------------------+
486| ``ceed``                | ex1 (volume)                    |
487+-------------------------+---------------------------------+
488|                         | - BP1 (scalar mass operator)    |
489| ``mfem``                | - BP3 (scalar Laplace operator) |
490+-------------------------+---------------------------------+
491| ``petsc``               | BP1 (scalar mass operator)      |
492+-------------------------+---------------------------------+
493| ``nek5000``             | BP1 (scalar mass operator)      |
494+-------------------------+---------------------------------+
495```
496
497(v0-2)=
498
499## v0.2 (Mar 30, 2018)
500
501libCEED was made publicly available the first full CEED software distribution, release
502CEED 1.0. The distribution was made available using the Spack package manager to provide
503a common, easy-to-use build environment, where the user can build the CEED distribution
504with all dependencies. This release included a new Fortran interface for the library.
505This release also contained major improvements in the OCCA backend (including a new
506`/ocl/occa` backend) and new examples. The standalone libCEED example was modified to
507compute the volume volume of a given mesh (in 1D, 2D, or 3D) and placed in an
508`examples/ceed` subfolder. A new `mfem` example to perform BP3 (with the application
509of the Laplace operator) was also added to this release.
510
511Backends available in this release:
512
513```{eval-rst}
514+---------------------------+---------------------------------+
515| CEED resource (``-ceed``) | Backend                         |
516+---------------------------+---------------------------------+
517| ``/cpu/self``             | Serial reference implementation |
518+---------------------------+---------------------------------+
519| ``/cpu/occa``             | Serial OCCA kernels             |
520+---------------------------+---------------------------------+
521| ``/gpu/occa``             | CUDA OCCA kernels               |
522+---------------------------+---------------------------------+
523| ``/omp/occa``             | OpenMP OCCA kernels             |
524+---------------------------+---------------------------------+
525| ``/ocl/occa``             | OpenCL OCCA kernels             |
526+---------------------------+---------------------------------+
527```
528
529Examples available in this release:
530
531```{eval-rst}
532+-------------------------+---------------------------------+
533| User code               | Example                         |
534+-------------------------+---------------------------------+
535| ``ceed``                | ex1 (volume)                    |
536+-------------------------+---------------------------------+
537|                         | - BP1 (scalar mass operator)    |
538| ``mfem``                | - BP3 (scalar Laplace operator) |
539+-------------------------+---------------------------------+
540| ``petsc``               | BP1 (scalar mass operator)      |
541+-------------------------+---------------------------------+
542| ``nek5000``             | BP1 (scalar mass operator)      |
543+-------------------------+---------------------------------+
544```
545
546(v0-1)=
547
548## v0.1 (Jan 3, 2018)
549
550Initial low-level API of the CEED project. The low-level API provides a set of Finite
551Elements kernels and components for writing new low-level kernels. Examples include:
552vector and sparse linear algebra, element matrix assembly over a batch of elements,
553partial assembly and action for efficient high-order operators like mass, diffusion,
554advection, etc. The main goal of the low-level API is to establish the basis for the
555high-level API. Also, identifying such low-level kernels and providing a reference
556implementation for them serves as the basis for specialized backend implementations.
557This release contained several backends: `/cpu/self`, and backends which rely upon the
558[OCCA](http://github.com/libocca/occa) package, such as `/cpu/occa`,
559`/gpu/occa`, and `/omp/occa`.
560It also included several examples, in the `examples` folder:
561A standalone code that shows the usage of libCEED (with no external
562dependencies) to apply the Laplace operator, `ex1`; an `mfem` example to perform BP1
563(with the application of the mass operator); and a `petsc` example to perform BP1
564(with the application of the mass operator).
565
566Backends available in this release:
567
568```{eval-rst}
569+---------------------------+---------------------------------+
570| CEED resource (``-ceed``) | Backend                         |
571+---------------------------+---------------------------------+
572| ``/cpu/self``             | Serial reference implementation |
573+---------------------------+---------------------------------+
574| ``/cpu/occa``             | Serial OCCA kernels             |
575+---------------------------+---------------------------------+
576| ``/gpu/occa``             | CUDA OCCA kernels               |
577+---------------------------+---------------------------------+
578| ``/omp/occa``             | OpenMP OCCA kernels             |
579+---------------------------+---------------------------------+
580```
581
582Examples available in this release:
583
584```{eval-rst}
585+-------------------------+-----------------------------------+
586| User code               | Example                           |
587+-------------------------+-----------------------------------+
588| ``ceed``                | ex1 (scalar Laplace operator)     |
589+-------------------------+-----------------------------------+
590| ``mfem``                | BP1 (scalar mass operator)        |
591+-------------------------+-----------------------------------+
592| ``petsc``               | BP1 (scalar mass operator)        |
593+-------------------------+-----------------------------------+
594```
595