Comments (1)
in the function tag_array::probe() in file gpu-cache.cc
142 if (line->m_status != RESERVED) {//-at least one is not RESERVED, all_reserved = false;means one can be evict.
143 all_reserved = false;
144 if (line->m_status == INVALID) {
145 invalid_line = index; //- the cache has a blank line, can be allocte to the quest if miss.
146 } else {
147 //- valid line : keep track of most appropriate replacement candidate. select a cadidate line if miss.
148 if ( m_config.m_replacement_policy == LRU ) {
149 if ( line->m_last_access_time < valid_timestamp ) {//-find a line with earlyest access time
150 valid_timestamp = line->m_last_access_time;
151 valid_line = index;
152 }
153 } else if ( m_config.m_replacement_policy == FIFO ) {
154 if ( line->m_alloc_time < valid_timestamp ) { //-find a line with earlyest alloc time
155 valid_timestamp = line->m_alloc_time;
156 valid_line = index;
157 }
158 }
159 }
160 }
gpusim implement LRU/FIFO by record the access time/allocate time of a cache-line.
from gpgpu-sim_distribution.
Related Issues (20)
- How to perform parallel kernel execution? How to use the stream parallelism? gpgpu-sim4.0 PTX_SIM_DEBUG=100 A large number of errors are generated? HOT 1
- about multi-streaming HOT 1
- microarchitecture model bug, ldst pop m_accessq banking error
- Seg Error HOT 1
- Need config for RTX 3090
- Data storage in physical memory
- Run ptx directly in GPGPUSim HOT 2
- When running GPGPU-sim with NVIDIA driver, such an error occurs. HOT 7
- how to get the Logic and arithmetic instructions of the PTX-level
- Resolve GCC Warning and Address Potential Bug in Checkpoint Functionality
- When running in gdb, an error occurs
- DVFS in GPGPU-sim
- make[1]: *** [Makefile:76: depend] Error 127 & make: *** [Makefile:207: cuda-sim] Error 2 in RHEL 9 HOT 20
- RuntimeError: cublas runtime error(gpgpu-sim with pytorch) HOT 1
- Deadlock when scaling up problem sizes
- ptx_parse() fuction doesn't return when executing different applications HOT 3
- Does gpgpu-sim support CUDA driver api? HOT 2
- How to complie it in ubuntu 22.04? HOT 2
- [Question] Using `gpgpu_ptx_sim_load_ptx_from_string` without affecting original `gpgpu_context`? HOT 1
- Independent Warp Scheduling in Volta+'s SIMT model 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 gpgpu-sim_distribution.