Giter Site home page Giter Site logo

Comments (3)

brunner6 avatar brunner6 commented on August 16, 2024

Here's a comment from @rchen20 in our internal issue:

I don't think there are any plans to add zero-ing memory to RCU, other than what is being used in this MR (Umpire memset). Looking at the functor implementation of kConst, I would guess it would be faster than umpire::memset. I can bring this up in the next RAJA or Umpire meeting; maybe we can propose adding the Armus::kConst implementation to Umpire?

And here's a follow-up from @ajkunen :

I think this functionality should go in CHAI:

  • RAJA doesn't do any memory management
  • One could make an Umpire allocator that zeros new allocations... but you really just want the first allocation to be zeroed, not both the host and device allocations.
  • CHAI is the only thing that knows that host and device allocations are associated. So, CHAI would be the right thing to trigger the zeroing... but I think Umpire should do the zeroing (like @rchen20 suggests)... so CHAI should tell Umpire to zero the first allocation for a ManagedArray, on whatever device that happens to be.

We could get this functionality now, by wiring this logic into our existing CHAI callback function... but it might be cleaner to just let the CHAI team implement it.

from chai.

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.