pku-liang / tenet Goto Github PK
View Code? Open in Web Editor NEWAn analytical framework that models hardware dataflow of tensor applications on spatial architectures using the relation-centric notation.
License: MIT License
An analytical framework that models hardware dataflow of tensor applications on spatial architectures using the relation-centric notation.
License: MIT License
Does TENET support L1 and L2 cache size?
MAESTRO returns warning messages for invalid cache sizes. I set the cache sizes for TENET to different values, but the result is still the same even if I set it to -1.
To reproduce this problem, you could change L1/L2 cache size in ./dataflow_example/pe_array.p to -1, rerun the command, and compare the results with the original output.
Command from the tutorial:
bin/tenet --m ./dataflow_example/KC_systolic_dataflow.m --p ./dataflow_example/pe_array.p --s ./dataflow_example/conv.s --o test.csv --all
Could you provide a feature for detecting invalid cache sizes?
Hi, @semiwaker @wangyuyue
Ref.: TENET tutorial
Could you explain why you map the loop index to PE[k%8, c%8]?
It assumes you can do many MACs in a PE per cycle.
Did I miss something? Thank you!
The systolic access pattern requires the inner-most time-stamp to be:
{S{k,c,ox,oy,rx,ry} → T[k%8 + c%8 + ox]}
Map the outer loop index to the time stamp:
{S{k,c,ox,oy,rx,ry} → T[floor(k/8), floor(c/8), oy, k%8 + c%8 + ox]}
For T[0, 0, 0, 0], I get
k | c | ox | oy | rx | ry |
---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 2 |
0 | 0 | 0 | 0 | 1 | 0 |
0 | 0 | 0 | 0 | 1 | 1 |
0 | 0 | 0 | 0 | 1 | 2 |
0 | 0 | 0 | 0 | 2 | 0 |
0 | 0 | 0 | 0 | 2 | 1 |
0 | 0 | 0 | 0 | 2 | 2 |
Only PE[0, 0] is used.
For T[0, 0, 0, 1], I get
k | c | ox | oy | rx | ry |
---|---|---|---|---|---|
0 | 0 | 1 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 0 | 2 |
0 | 0 | 1 | 0 | 1 | 0 |
0 | 0 | 1 | 0 | 1 | 1 |
0 | 0 | 1 | 0 | 1 | 2 |
0 | 0 | 1 | 0 | 2 | 0 |
0 | 0 | 1 | 0 | 2 | 1 |
0 | 0 | 1 | 0 | 2 | 2 |
Only PE[0, 0] is used.
For T[0, 0, 0, 2], I get
k | c | ox | oy | rx | ry |
---|---|---|---|---|---|
0 | 0 | 2 | 0 | 0 | 0 |
0 | 0 | 2 | 0 | 0 | 1 |
0 | 0 | 2 | 0 | 0 | 2 |
0 | 0 | 2 | 0 | 1 | 0 |
0 | 0 | 2 | 0 | 1 | 1 |
0 | 0 | 2 | 0 | 1 | 2 |
0 | 0 | 2 | 0 | 2 | 0 |
0 | 0 | 2 | 0 | 2 | 1 |
0 | 0 | 2 | 0 | 2 | 2 |
Only PE[0, 0] is used.
Hi, @wangyuyue @semiwaker what is your g++ version for TENET?
Could you provide detailed information about the environment where you build TENET and run all experiments?
I update my g++ to g++-8 to fix filesystem: No such file or directory
but still get terminate called after throwing an instance of 'std::bad_alloc'
after running bin/alexnet
.
I cloned and built the project according to the tutorial, but this construction failed at this
./configure --prefix=$EXTERNAL_LIB --with-ntl-prefix=$EXTERNAL_LIB --enable-shared-barvinok > /dev/null
the error shows "./configure:no such file or directory"
Is there anything in the project that I need to modify for building this project?
I think I have found what's wrong with the process.We should use apt to install some dependent library required first before compiling barvinok.
sudo apt install autoconf automake libtool
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.