bend_blas.bend
1# bend-blas: BLAS, LAPACK and cuBLAS for Bend 2, as one def per routine
2# on Array<F32>, and a shaped layer over them. This file is the
3# package's entry, so that one publish carries the four; import the
4# file you need:
5# import bend-blas-lapack@<version>/blas.bend as B # CBLAS: sgemm, sgemv, sdot, ..
6# import bend-blas-lapack@<version>/lapack.bend as L # sgesv, spotrf, sgesvd, ssyev, ..
7# import bend-blas-lapack@<version>/cublas.bend as C # the same on the GPU, device buffers
8# import bend-blas-lapack@<version>/mat.bend as M # Mat<rows, cols>, Vec<n>: the shapes checked
9# A program pays only for the effects it reaches. See README.md.
10import Base
11import bend-blas-lapack@0.0.0.1/blas.bend as Blas
12import bend-blas-lapack@0.0.0.1/lapack.bend as Lapack
13import bend-blas-lapack@0.0.0.1/cublas.bend as Cublas
14import bend-blas-lapack@0.0.0.1/mat.bend as Mat