Giter Site home page Giter Site logo

Extend `accumulate!` about cuarrays.jl HOT 5 CLOSED

juliagpu avatar juliagpu commented on May 29, 2024 2
Extend `accumulate!`

from cuarrays.jl.

Comments (5)

maleadt avatar maleadt commented on May 29, 2024

Maybe as a higher-order scan(f, ..; inclusive=true) function?

from cuarrays.jl.

dpsanders avatar dpsanders commented on May 29, 2024

I have a simple and naive version of cumsum working. I can turn this into a version of accumulate!. Should I add this as a PR here?

from cuarrays.jl.

maleadt avatar maleadt commented on May 29, 2024

Yes that would be nice! Is it based on the CUDAnative example?

from cuarrays.jl.

ali-ramadhan avatar ali-ramadhan commented on May 29, 2024

Happy to help work on this and contribute an efficient scan implementation.

I'm particularly interested in an efficient non-destructive mean(c, dims) where c is a non-contiguous view as it currently devolves into scalar operations.

The scan example seems to overwrite the array. I guess to make a non-destructive version you would take the work-efficient and accumulate into a temporary array?

Currently mean is pretty fast but I couldn't figure out how it's implemented.

from cuarrays.jl.

maleadt avatar maleadt commented on May 29, 2024

Fixed by #447

from cuarrays.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.