Giter VIP home page Giter VIP logo

java-vbench's People

Contributors

styp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

java-vbench's Issues

`mulMatrixvsMatrixBlockedVectorUnrolled` test fails

Hi there, really nice project and article!
When I clone the repo and run ./gradlew test, the test mulMatrixvsMatrixBlockedVectorUnrolled fails with this message:

org.opentest4j.AssertionFailedError: expected: <124.42004> but was: <0.0>
	at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
	at app//org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:118)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:113)
	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:856)
	at app//ch.styp.MatrixMulTest.mulMatrixvsMatrixBlockedVectorUnrolled(MatrixMulTest.java:62)
        ...

Sometimes, also the test fmaArrayVectorVsScalar fails with the message:

org.opentest4j.AssertionFailedError: expected: <226.77946> but was: <226.77934>
	at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
	at app//org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:118)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:113)
	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:856)
	at app//ch.styp.SumArrayTest.fmaArrayVectorVsScalar(SumArrayTest.java:49)
        ...

This happens on java 17.0.8 Temurin, on 18 OpenJDK and on 20 OpenJDK (I have not tested other versions).
I am working on Ubuntu 22.04.3 on an Intel(R) Core(TM) i7-7700.

P.S.
Aside from this problem, I notice that the tests for correctness aren't as complete as I think they should be, so I'm working on a PR right now to fix them.

Raspberry Pi 4 oddness

If boot in clean and build you get an assertion error. Try it again and the error goes away.

pi@gandalf:~/java-vbench $ gradle clean
Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 25s
1 actionable task: 1 executed
pi@gandalf:~/java-vbench $ gradle build

Task :compileJava
warning: using incubating module(s): jdk.incubator.vector
1 warning

Task :compileTestJava
warning: using incubating module(s): jdk.incubator.vector
1 warning

Task :test
WARNING: Using incubator modules: jdk.incubator.vector

SumArrayTest > fmaArrayVectorVsScalar() FAILED
org.opentest4j.AssertionFailedError at SumArrayTest.java:49

3 tests completed, 1 failed

Task :test FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':test'.

There were failing tests. See the report at: file:///home/pi/java-vbench/build/reports/tests/test/index.html

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 12s
4 actionable tasks: 4 executed
pi@gandalf:~/java-vbench $ gradle clean

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
pi@gandalf:~/java-vbench $ gradle build

Task :compileJava
warning: using incubating module(s): jdk.incubator.vector
1 warning

Task :compileTestJava
warning: using incubating module(s): jdk.incubator.vector
1 warning

Task :test
WARNING: Using incubator modules: jdk.incubator.vector

BUILD SUCCESSFUL in 7s
4 actionable tasks: 4 executed
pi@gandalf:~/java-vbench $

Not really a code bug I would guess but a little strange.

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.