chickadee » array-morphisms-crunch » crunch-daxpy

crunch-sgemm M N K alpha A B beta Cprocedure
crunch-dgemm M N K alpha A B beta Cprocedure
crunch-sgemm-strided M N K alpha A lda transa B ldb transb beta Cprocedure
crunch-dgemm-strided M N K alpha A lda transa B ldb transb beta Cprocedure
crunch-sgemm-offset M N K alpha A off-A lda transa B off-B ldb transb beta C off-Cprocedure
crunch-dgemm-offset M N K alpha A off-A lda transa B off-B ldb transb beta C off-Cprocedure
crunch-sgemv M N alpha A x beta yprocedure
crunch-dgemv M N alpha A x beta yprocedure
crunch-sdot N x yprocedure
crunch-ddot N x yprocedure
crunch-sdot-offset N x off-x y off-yprocedure
crunch-ddot-offset N x off-x y off-yprocedure
crunch-saxpy N alpha x yprocedure
crunch-daxpy N alpha x yprocedure

The BLAS kernels, with the normalized signatures of array-morphisms-blas-exec.

  • Each element of C is a sum over k in increasing order, in double precision for f32 as well as f64, so the result does not depend on the number of threads.
  • An operand that is not plain row-major is first packed into a row-major copy. Packing buffers are kept and reused.
  • The rows of C are shared among up to (crunch-thread-count) threads, with at least 65536 multiply-adds per thread.
  • As in reference BLAS, C is not read when beta is 0.
  • The offset kernels take matrices and vectors that start at an offset into their vectors, as array-morphisms needs for the cells of a batched product. They compute exactly as the strided GEMM and the DOT kernel.