func (h *Handle) PointerMode() PointerMode {
	return h.ptrMode
}
PointerMode returns the current PointerMode.

This must be called inside the cuda.Context.
package cublas
import "C"
import (
	"runtime"
	"github.com/unixpickle/cuda"
)
type Handle struct {
	handle C.cublasHandle_t
	ctx    *cuda.Context
	ptrMode PointerMode
}
func NewHandle(ctx *cuda.Context) (*Handle, error) {
	res := &Handle{ctx: ctx, ptrMode: Host}
	err := newError("cublasCreate", C.cublasCreate(&res.handle))
	if err != nil {
		return nil, err
	}
	runtime.SetFinalizer(res, func(obj *Handle) {
		go obj.ctx.Run(func() error {
			C.cublasDestroy(obj.handle)
			return nil
		})
	})
	return res, nil
}