Skip to content

v2.1.0

Latest

Choose a tag to compare

@dmalhotra dmalhotra released this 11 Nov 18:11

New

  • SmallGEMM: a kernel for one contiguous column of B (matrix-vector products). On one core of an AMD EPYC 9474F, for m x k by k x 1 with k of 144 and 432 and m from 1 to 768, it takes 0.15-0.99x the time of OpenBLAS dgemm and 0.25-1.12x that of MKL dgemm (#46).
  • QuadElemList (experimental): Gmsh MSH 4.1 input and output (ReadGmsh, WriteGmsh), binary Write and Read, and SCTL_QUAD_ELEM_ORDERS to select the element orders that are compiled (#42).
  • omp_par: parallel_for and parallel_reduce run the loop on the calling thread, without a parallel region, when the team would have one thread (#46).

Performance

  • gemm, radix_sort and Tree run on teams of all threads, so that libgomp does not end and create threads again between calls (#45).
  • A thread that ends leaves its ScratchPool chunk to the next thread made, and ScratchBuf moves the top-most buffer to a larger chunk when its own has no room (#45).
  • GMRES keeps its Krylov basis, Hessenberg matrix and residual in scratch memory (#45).
  • BuildNearList computes the bounding box in parallel and in one pass; QuadElemList::Init copies in parallel (#45).
  • BoundaryIntegralOp computes the near interactions with SmallGEMM instead of BLAS (#46).

Fixes

  • With an ILP64 BLAS (64-bit integers), gemm gave wrong results and gesvd failed. The integer width now comes from SCTL_BLAS_INT, or is detected from the BLAS on the first call (#44).
  • The BLAS and LAPACK declarations no longer conflict with those of Eigen, OpenBLAS, LAPACK or MKL headers (#44, fixes #12).
  • No warnings with -Wextra, or with -Wfloat-conversion for Real = float (#46, #47); nvcc compiles the host code as the host compiler does (#46).
  • Makefile: -mno-avx512fp16 and __float128 only where the compiler has them (#43).

Changes that may need updates

  • blas.h and lapack.h no longer declare the Fortran functions sgemm_, dgemm_, sgesvd_ and dgesvd_; SCTL calls them through sctl::detail_blas and sctl::detail_lapack. Code that calls these functions must declare them itself or include its BLAS header (#44).
  • mat::svd takes Long* integer arguments, and mat::gemm and mat::pinv take Long (#44).
  • QuadElemList::Write(fname, binary, comm): the new binary argument comes before comm. Files start with a format version line, and Read does not read files written by 2.0.0 (#42).

Attribution

Zenodo DOI and a citation section with BibTeX in the README and the documentation; Abtin Rahimian added to the authors.

Full Changelog: 2.0.0...2.1.0