Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mat-mul error on an M3 #138

Open
guillaumeguy opened this issue Dec 20, 2023 · 1 comment
Open

mat-mul error on an M3 #138

guillaumeguy opened this issue Dec 20, 2023 · 1 comment

Comments

@guillaumeguy
Copy link

Thanks for all of your great work!

I was exploring the library and I got some functions working but mat mul seems to fail on Mac;

Versions:

  • Mac version: 14.2 (23C64)
  • kotlin("jvm") version "1.9.21"
  • Gradle: implementation("org.jblas:jblas:1.2.4")
package org.example

import org.jblas.FloatMatrix

fun main() {
    println("Hello World!")
    var N = 100;
    var rotation = FloatMatrix.rand(N,N);
    var vector = FloatMatrix.rand(N,N);

    var g = rotation.mmul(vector);
    
}

Error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void org.jblas.NativeBlas.sgemm(char, char, int, int, int, float, float[], int, int, float[], int, int, float, float[], int, int)'
	at org.jblas.NativeBlas.sgemm(Native Method)
	at org.jblas.SimpleBlas.gemm(SimpleBlas.java:675)
	at org.jblas.FloatMatrix.mmuli(FloatMatrix.java:1781)
	at org.jblas.FloatMatrix.mmul(FloatMatrix.java:3138)
	at org.example.MainKt.main(Main.kt:12)
	at org.example.MainKt.main(Main.kt)
-- org.jblas INFO Deleting /var/folders/04/y960qb597k12fz20tcfxwmz40000gn/T/jblas15656002949808389317
@mikiobraun
Copy link
Member

Hey Guillaume,

how did you use jblas? Did you download it as a dependency or were your building it yourself?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants