Comments (1)
Apart from harvard-acc/ALADDIN#43, the other question is why this only happens with MemoryPolicy = AllCache, rather than DMA or ACP. The reason here is that in gem5-aladdin, when we say "map this array to a cache", we really mean "replace the scratchpad for this array with an L1 cache entirely". It applies only to the memory on the accelerator side. But in the SMAUG context, the memory policy of "AllCache" just means "when you copy data from the host to the accelerator, get the data from the host through normal virtual memory, not by sending DMA or ACP requests". In other words, "caching" in a MemoryPolicy refers to the mechanism of how you get the data, not the physical place where data is stored.
This mode of fetching data is not supported in gem5-aladdin because it's really no different from using ACP as the transport mechanism. I will send a patch to remove AllCache as a valid MemoryPolicy, because it's not.
If you were interested in replacing the scratchpads on the accelerators with a cache, that's done differently. Go into the smv-accel.cfg file (which configures the accelerator) and replace all the "partition,cyclic" lines with "cache". Then configure the cache itself in gem5.cfg by changing memory_type=cache
and updating cache_size=xxkB
. This will require #104 to fix a small bug with missing files. Once that's submitted, update SMAUG's submodules (git submodule update), and it should work for you (I just tested it).
from smaug.
Related Issues (20)
- Support for Depthwise Conv layer HOT 1
- How to port Rinforcement learning algorithm on smaug? HOT 2
- Simulation with ResNet fails HOT 7
- Question about DMA setup time modeling HOT 2
- Systolic array loops when feature size is the same of kernel size HOT 1
- Can we run multiple instances of NVDLA minerva model on smaug . HOT 2
- Fail to replace accelerator spad with cache: `RuntimeError: Unknown array "inputs".` HOT 2
- Failed to run Smaug example
- Can I simulate the accelerator whose clock frequency is larger than 1GHz HOT 3
- Errors when bulid gem5-aladdin with --debug-aladdin flag
- Catch2 unit tests OOM when using the JUnit reporter
- Simplify Python module naming for easier usage
- Clean up files from SMAUGv1
- Clean up public APIs that may not need to be public or exist at all
- Workspace is not a singleton HOT 1
- Workspace::addTensor may leak memory if a Tensor name is reused
- Update Dockerfile and image with doc generator prereqs HOT 1
- Improve documentation for SMV backend
- Add a padding operator
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 smaug.