Code Monkey home page Code Monkey logo

Comments (5)

jip avatar jip commented on September 26, 2024

Some tests:

Let alpha := beta := 1.0.

Test # 1: A is rectangular, C is square.

Let A be a 3x5 matrix:

2 9 1 5 0
2 2 7 3 8
3 1 3 8 5

Let B be a 5x3 matrix:

9 2 4
9 3 8
2 8 0
4 3 9
6 3 1

Let C be a 3x3 matrix:

8 2 6
8 1 2
5 9 4

Then the correct answer would be:

129   2   6
118 100   2
109  81 101

Result of gemmlnn:

129   2   6
118 100   2
109  81 101

Result of dgemmlnn:

129   2   6
118 100   2
109  81 101

Result of zgemmlnn:

129   2   6
118 100   2
109  81 101

So, it works with rectangular A, this contradicts documentation.

Test # 2: A is square, C is rectangular.

Let A be a 5x5 matrix:

0 5 0 9 9
5 9 3 7 8
6 8 4 9 1
7 7 3 7 2
7 5 7 3 6

Let B be a 5x4 matrix:

3 4 7 5
9 0 1 2
0 0 4 5
4 6 5 9
8 9 2 3

Let C be a 5x4 matrix:

4 4 3 8
2 9 7 5
0 7 8 8
8 6 6 9
0 7 9 7

Then the correct answer would be:

157   4   3   8
190 143   7   5
134  94 121   8
136  94 113 142
126 107 118 132

Result of gemmlnn:

libblis: frame/3/bli_l3_check.c (line 84):
libblis: Expected square object.
libblis: Aborting.
./jconsole.sh: line 6:  5834 Core dumped

Result of dgemmlnn:

157   4   3   8
190 143   7   5
134  94 121   8
136  94 113 142
  0   7   9   7

Result of zgemmlnn

157   4   3   8
190 143   7   5
134  94 121   8
136  94 113 142
  0   7   9   7

So, the result is incorrect.

from blis.

devinamatthews avatar devinamatthews commented on September 26, 2024

@jip can you please send a minimal working example of the failure in test # 2? Also, what is gemmlnn? If the call goes through bli_trmm3 then it should perform checks via bli_trmm3_check which only checks that A is square, rather than bli_gemmt_check which is where your error occurs (line 84).

from blis.

devinamatthews avatar devinamatthews commented on September 26, 2024

Also, which version of BLIS are you using (release or git commit ID)?

from blis.

fgvanzee avatar fgvanzee commented on September 26, 2024

Yeah, I don't see where the problem would be in master.

from blis.

jip avatar jip commented on September 26, 2024

@devinamatthews and @fgvanzee I'm sorry for the noise, you are right: I messed up bli_gemmt with bli_trmm3. gemmlnn is my wrapper for bli_gemmt on another language using lower C triangle and non-transposed A and B.

Just for the record: my libblis.so.4.0.0 has version 0.9.0-91 and was build for haswell 2023-03-20.

from blis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.