Skip to content

hidetatz/whale

Repository files navigation

Openblas support

whale internally supports openblas, currently for Matmul (32-bit sgemm) in tensor. Right now it only supports Linux. To use openblas, make sure below are satisfied:

  • openblas installed. See Installation Guide
    • Header file must be named /opt/OpenBLAS/include/cblas.h
    • Lib files must be in /opt/OpenBLAS/lib/
  • Shared object path is specified at build time (for static link) or runtime (for dynamic link).
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/OpenBLAS/lib
  • Go program is built with build tag blas
    • go build -tags blas

If -tags blas is not specified, generic matmul implementation using pure Go (somewhat parallelized using goroutine) is used. If openblas is not usable from Go while -tags blas is specified, the build or execution of the program will just fail.

Plotting

Plotting requires gnuplot installed.

sudo apt install gnuplot-x11

About

Deep learning framework for Gophers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages