blase

package
v0.9.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

README

#Blastoise#

blastoise is a very simple wrapper package around gonum/blas. It implements a buffer so that cgo calls are batched. A similar design is done for Cubone.

Documentation

Overview

Package blase is a thin wrapper over Gonum's BLAS interface that provides a queue so that cgo calls are batched. This package was created so MKL usage can be improved.

Any cblas function that is not handled will result in the blocking BLAS call being called

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Implementation

func Implementation() *context

Implementation returns a BLAS implementation that implements Float32, Float64, Complex64 and Complex128

Types

type Worker

type Worker interface {
	WorkAvailable() <-chan struct{}
	DoWork()
}

A Worker is a BLAS implementation that reports back if there is anything in the queue (WorkAvailable()) and a way to flush that queue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL