You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nim c -d:release -d:case2 $timn_D/src/timn/apps/laser.nim
time $timn_D/src/timn/apps/laser
1000.0
$timn_D/src/timn/apps/laser 5.35s user 0.03s system 99% cpu 5.405 total
import pkg/laser/primitives/matrix_multiplication/gemm
whendefined(case2):
proctest=#todo: different numberslet p1 =1000let p2 = p1
let p3 = p1
type T =floatvar a =newSeq[T](p1 * p2)
for i in0..<a.len: a[i] =1.0var b =newSeq[T](p2 * p3)
for i in0..<b.len: b[i] =1.0var c =newSeq[T](p1 * p3)
for i in0..<100:
gemm_strided(
p1, p2, p3, # CHECKME ; not sure if order correct, would be nice to document M,N,K in `gemm_strided`1.0,
a[0].addr, p1, 1,
b[0].addr, p2, 1,
0.0,
c[0].addr, p1, 1,
)
# echo a# echo becho c[0]
test()
python
laser
The text was updated successfully, but these errors were encountered: