Comments (2)
It is based on the average memory cycle defined in the computer architecture book (see page 75).
PAPI does not give you all counters you will need, and it changes per architecture. We used something like below:
def compute_memory_cycle_for_one_group(row, arch_params):
dl1_miss = row['PAPI_L1_DCM'].values
dl2_miss = row['PAPI_L2_DCM'].values
dl3_miss = row['PAPI_L3_TCM'].values
dl1_access = row['PAPI_LST_INS'].values
l1_mr = dl1_miss / dl1_access
l2_mr = dl2_miss / dl1_miss
l3_mr = dl3_miss / dl2_miss
l1_access_cost = arch_params['L1_ACCESS_TIME']
l2_access_cost = arch_params['L2_ACCESS_TIME']
l3_access_cost = arch_params['L3_ACCESS_TIME']
mm_access_cost = arch_params['MAIN_MEMORY_ACCESS_TIME']
avg_mem_cycle = l1_access_cost + l1_mr*(l2_access_cost + l2_mr*(l3_access_cost + l3_mr*mm_access_cost))
exec_cycle = avg_mem_cycle * dl1_access
return exec_cycle
You will need some architecture parameters. You can improve the code by finding more accurate counters.
from aggregation.
Thanks, that makes sense! I find that Vtune also provides an average latency metric, but it's good to calculate and verify it from scratch.
from aggregation.
Related Issues (6)
- Use std::isnan in example/SpTRSV_runtime.h HOT 1
- Assertion error inside HDAGG::partialSparsification for Hdagg_SpTRSV example HOT 8
- Metis reordering necessary to sptrsv example? HOT 1
- Why is Metis reordering necessary for the sptrsv example? HOT 10
- Invalid vector size bug during Tree-HDagg partitioning for certain input matrices HOT 1
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 aggregation.