blas: Remove variable copying in dgemm
* blas: Remove variable copying in dgemm
Fixes
MODIFY
blas/gonum/dgemm.go
blas/gonum/dgemm.go
@@ -180,13 +180,6 @@ func dgemmParallel(aTrans, bTrans bool, m, n, k int, a []float64, lda int, b []f
wg.Add(1)
go func() {
defer wg.Done()
- // Make local copies of otherwise global variables to reduce shared memory.
- // This has a noticeable effect on benchmarks in some cases.
- alpha := alpha
- aTrans := aTrans
- bTrans := bTrans
- m := m
- n := n
for sub := range sendChan {
i := sub.i
j := sub.j

MODIFY
blas/gonum/sgemm.go
blas/gonum/sgemm.go
@@ -184,13 +184,6 @@ func sgemmParallel(aTrans, bTrans bool, m, n, k int, a []float32, lda int, b []f
wg.Add(1)
go func() {
defer wg.Done()
- // Make local copies of otherwise global variables to reduce shared memory.
- // This has a noticeable effect on benchmarks in some cases.
- alpha := alpha
- aTrans := aTrans
- bTrans := bTrans
- m := m
- n := n
for sub := range sendChan {
i := sub.i
j := sub.j

blas: Remove variable copying in dgemm (#734)

* blas: Remove variable copying in dgemm

Fixes #732.