Git Product home page Git Product logo

Comments (7)

magerton avatar magerton commented on July 16, 2024

Attaching file with tests (just pull off the .txt required by Github to upload)

softmax3test.jl.txt

from loopvectorization.jl.

chriselrod avatar chriselrod commented on July 16, 2024

I'm working on these.

As a note

                # FIXME - would prefer to replace 2nd loop w/ if stmt
                # k <= maxk && (qq[i,k] = tmp)

Once it works, it'll probably be slower than the 2 loops, because it will evaluate the store on every iteration (but it'll apply a mask).

from loopvectorization.jl.

magerton avatar magerton commented on July 16, 2024

Thanks, @chriselrod!

Good to know about the if statement & two loops -- I'll keep them separate then.

from loopvectorization.jl.

chriselrod avatar chriselrod commented on July 16, 2024

I'm now testing basic conditionals and your softmax3 functions, based on the second (previously broken) version.

However, that FIXME wont work yet, because the library doesn't have much support for using the iterating variable for anything other than indexing.
(Also, FWIW, the 1 versions, with @avx on the inner loop, like you wrote, got slightly better performance.)

from loopvectorization.jl.

magerton avatar magerton commented on July 16, 2024

Oh, fantastic! Thanks, @chriselrod!

from loopvectorization.jl.

chriselrod avatar chriselrod commented on July 16, 2024

Closed because adding the store to the same loop has now been fixed and added to the testsuite.

from loopvectorization.jl.

magerton avatar magerton commented on July 16, 2024

Thanks, @chriselrod!

from loopvectorization.jl.

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.