@@ -34,7 +34,7 @@ var format = require( '@stdlib/string/format' );
34
34
var tryRequire = require ( '@stdlib/utils/try-require' ) ;
35
35
36
36
// var sgemm = require( '@stdlib/blas/base/sgemm' ).ndarray;
37
- var sgemm = require ( '@stdlib/utils/noop' ) ;
37
+ var sgemm = require ( '@stdlib/utils/noop' ) ; // FIXME: remove once `sgemm` merged
38
38
39
39
var pkg = require ( './../package.json' ) . name ;
40
40
@@ -94,7 +94,7 @@ function createBenchmark1( shapeA, orderA, shapeB, orderB, shapeC, orderC ) {
94
94
95
95
b . tic ( ) ;
96
96
for ( i = 0 ; i < b . iterations ; i ++ ) {
97
- sgemm ( 'no-transpose' , 'no-transpose' , shapeA [ 0 ] , shapeC [ 1 ] , shapeB [ 0 ] , 0.5 , A , sa [ 0 ] , sa [ 1 ] , 0 , B , sb [ 0 ] , sb [ 1 ] , 0 , 2.0 , C , sc [ 1 ] , sc [ 0 ] , 0 ) ;
97
+ sgemm ( 'no-transpose' , 'no-transpose' , shapeA [ 0 ] , shapeC [ 1 ] , shapeB [ 0 ] , 0.5 , A , sa [ 0 ] , sa [ 1 ] , 0 , B , sb [ 0 ] , sb [ 1 ] , 0 , 2.0 , C , sc [ 0 ] , sc [ 1 ] , 0 ) ;
98
98
if ( isnanf ( C [ i % C . length ] ) ) {
99
99
b . fail ( 'should not return NaN' ) ;
100
100
}
@@ -203,21 +203,21 @@ function main() {
203
203
'row-major'
204
204
] ;
205
205
f = createBenchmark1 ( shapes [ 0 ] , orders [ 0 ] , shapes [ 1 ] , orders [ 1 ] , shapes [ 2 ] , orders [ 2 ] ) ;
206
- bench ( format ( '%s::stdlib:blas/base/sgemm:orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , f ) ;
206
+ bench ( format ( '%s::stdlib:blas/base/sgemm:dtype=%s, orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , OPTS . dtype , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , f ) ;
207
207
208
208
f = createBenchmark2 ( shapes [ 0 ] , orders [ 0 ] , shapes [ 1 ] , orders [ 1 ] , shapes [ 2 ] , orders [ 2 ] ) ;
209
- bench ( format ( '%s::scijs:ndarray-gemm:orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , opts , f ) ;
209
+ bench ( format ( '%s::scijs:ndarray-gemm:dtype=%s, orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , OPTS . dtype , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , opts , f ) ;
210
210
211
211
orders = [
212
212
'row-major' ,
213
213
'column-major' ,
214
214
'row-major'
215
215
] ;
216
216
f = createBenchmark1 ( shapes [ 0 ] , orders [ 0 ] , shapes [ 1 ] , orders [ 1 ] , shapes [ 2 ] , orders [ 2 ] ) ;
217
- bench ( format ( '%s::stdlib:blas/base/sgemm:orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , f ) ;
217
+ bench ( format ( '%s::stdlib:blas/base/sgemm:dtype=%s, orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , OPTS . dtype , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , f ) ;
218
218
219
219
f = createBenchmark2 ( shapes [ 0 ] , orders [ 0 ] , shapes [ 1 ] , orders [ 1 ] , shapes [ 2 ] , orders [ 2 ] ) ;
220
- bench ( format ( '%s::scijs:ndarray-gemm:orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , opts , f ) ;
220
+ bench ( format ( '%s::scijs:ndarray-gemm:dtype=%s, orders=(%s),size=%d,shapes={(%s),(%s),(%s)}' , OPTS . dtype , pkg , orders . join ( ',' ) , numel ( shapes [ 2 ] ) , shapes [ 0 ] . join ( ',' ) , shapes [ 1 ] . join ( ',' ) , shapes [ 2 ] . join ( ',' ) ) , opts , f ) ;
221
221
}
222
222
}
223
223
0 commit comments