Comments (3)
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)
- Umpire memory sanitizer issue with 2.2.1 and clang 9 on Lassen HOT 2
- Exit time error with 2.3.0
- Ability to use temporary memory resource sets within ManagedArrays HOT 4
- Zero-length ManagedArrays leak memory HOT 1
- Issues using ManagedArrays as class members HOT 1
- Issue with ManagedArray::Operator[] and RAJA HOT 3
- CMakeLists.txt flow control statement nesting issue HOT 1
- README instructions outdated (?), build fails with CUDA enabled HOT 5
- Deprecate getPointer method in favor of data method HOT 2
- How to cite CHAI? HOT 1
- Linking against cuda_runtime rather than cudart HOT 1
- Double free corruption when chai is used both in a shared object and an executable linking to it
- std::filesystem not found in default build HOT 1
- Fix dynamic_pointer_cast for managed_ptr
- Consider removing disabled execution spaces from enum HOT 1
- More configuration checking
- Compilation issue HOT 3
- Configure fails to recognize external Camp built with Raja: The following imported targets are referenced, but are missing: blt::openmp HOT 2
- Build configuration with RAJA plugin enabled fails to add BLT stub HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chai.