| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
mem-ruby: Remove static methods from RubySystem (#1453) There are several parts to this PR to work towards #1349 . (1) Make RubySystem::getBlockSizeBytes non-static by providing ways to access the block size or passing the block size explicitly to classes. The main changes are: - DataBlocks must be explicitly allocated. A default ctor still exists to avoid needing to heavily modify SLICC. The size can be set using a realloc function, operator=, or copy ctor. This is handled completely transparently meaning no protocol or config changes are required. - WriteMask now requires block size to be set. This is also handled transparently by modifying the SLICC parser to identify WriteMask types and call setBlockSize(). - AbstractCacheEntry and TBE classes now require block size to be set. This is handled transparently by modifying the SLICC parser to identify these classes and call initBlockSize() which calls setBlockSize() for any DataBlock or WriteMask. - All AbstractControllers now have a pointer to RubySystem. This is assigned in SLICC generated code and requires no changes to protocol or configs. - The Ruby Message class now requires block size in all constructors. This is added to the argument list automatically by the SLICC parser. (2) Relax dependence on common functions in src/mem/ruby/common/Address.hh so that RubySystem::getBlockSizeBits is no longer static. Many classes already have a way to get block size from the previous commit, so they simply multiple by 8 to get the number of bits. For handling SLICC and reducing the number of changes, define makeCacheLine, getOffset, etc. in RubyPort and AbstractController. The only protocol changes required are to change any "RubySystem::foo()" calls with "m_ruby_system->foo()". For classes which do not have a way to get access to block size but still used makeLineAddress, getOffset, etc., the block size must be passed to that class. This requires some changes to the SimObject interface for two commonly used classes: DirectoryMemory and RubyPrefecther, resulting in user-facing API changes User-facing API changes: - DirectoryMemory and RubyPrefetcher now require the cache line size as a non-optional argument. - RubySequencer SimObjects now require RubySystem as a non-optional argument. - TesterThread in the GPU ruby tester now requires the cache line size as a non-optional argument. (3) Removes static member variables in RubySystem which control randomization, cooldown, and warmup. These are mostly used by the Ruby Network. The network classes are modified to take these former static variables as parameters which are passed to the corresponding method (e.g., enqueue, delayHead, etc.) rather than needing a RubySystem object at all. Change-Id: Ia63c2ad5cf0bf9d1cbdffba5d3a679bb4d3b1220 (4) There are two major SLICC generated static methods: getNumControllers() on each cache controller which returns the number of controllers created by the configs at run time and the functions which access this method, which are MachineType_base_count and MachineType_base_number. These need to be removed to create multiple RubySystem objects otherwise NetDest, version value, and other objects are incorrect. To remove the static requirement, MachineType_base_count and MachineType_base_number are moved to RubySystem. Any class which needs to call these methods must now have a pointer to a RubySystem. To enable that, several changes are made: - RubyRequest and Message now require a RubySystem pointer in the constructor. The pointer is passed to fields in the Message class which require a RubySystem pointer (e.g., NetDest). SLICC is modified to do this automatically. - SLICC structures may now optionally take an "implicit constructor" which can be used to call a non-default constructor for locally defined variables (e.g., temporary variables within SLICC actions). A statement such as "NetDest bcast_dest;" in SLICC will implicitly append a call to the NetDest constructor taking RubySystem, for example. - RubySystem gets passed to Ruby network objects (Network, Topology). | 1 年前 | |
configs: Instantiate RNFs and MN via callbacks This commit allows top level configs making use of the Ruby module to define node generation callbacks. The config_ruby function will check the system object for two factory methods 1) _rnf_gen, if defined, will be called to generate RNFs 2) _mn_gen, if defined, will be called to generate MNs Change-Id: I9daeece646e7cdb2d3bfefa761a9650562f8eb4b Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
python: Apply Black formatter to Python files The command executed was black src configs tests util. Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com> | 3 年前 | |
configs: Allow GPU-FS to use HBMCtrl memory controller This commit adds a command line argument --hbm-ctrl to enable HBMCtrl in GPU-FS. HBM_2000_4H_1x64 is tested. | 11 个月前 | |
mem-garnet,mem-ruby: Fixed Garnet_standalone simulation (#2326) | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
mem-ruby,configs: Update AMD protos with new names Update the MOESI_AMD_Base and GPU_VIPER configuration files with the new full protocol-specific names for the controllers instead of the deprecated names. Note: If you have any files which use the CntrlBase base, you will likely need to update the class names that you are inheriting from. Change-Id: I623fea7dd4cd151f7b15fe7cb43f8a4c45492d89 Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs,mem-ruby: Update ruby configs for ALL target (#2160) Use the full names for all of the controllers in the ruby scripts. Now the ruby_random_test.py script will work with all of the ruby protocols except for CHI. Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
mem-ruby,scons: Add scons option for multiple protocols This change does many things, but they must all be atomically done. **USER FACING CHANGE**: The Ruby protocols in Kconfig have changed names (they are now the same case as the SLICC file names). So, after this commit, your build configurations need to be updated. You can do so by running scons menuconfig <build dir> and selecting the right ruby options. Alternatively, if you're using a build_opts file, you can run scons defconfig build/<ISA> build_opts/<ISA> which should update your config correctly. Detailed changes are described below. Kconfig changes: - Kconfig files in ruby now must all be declared in the ruby/Kconfig file - All of the protocol names are changed to match their slicc file names including the case - A new option is available called "Use multiple protocols" which should be selected if multiple protocols are selected. This is only used to set the PROTOCOL variable to "MULTIPLE" when in multiple mode. - The PROTOCOL variable can now be "MULTIPLE" which means it will be ignored. If it's not "MULTIPLE" then it holds the "main" protocol, which is necessary for backwards compatibility with the Ruby.py files. Ruby config changes: To make this change backwards compatible with Ruby.py, this change adds a new "protocol" config called MULTIPLE.py which is used to allow the user to set a "--protocol" option on the command line. This is only needed if you are using a gem5 binary with multiple protocols but need to use Ruby.py. stdlib changes: - Make the coherence protocol file behave like the ISA file - Add a function to get the coherence protocol from the CacheHierarchy like we do with the ISA in the Processor. - Use this function where get_runtime_coherence_protocol was used - Update the requires code to work with the ne CoherenceProtocol - Fix a typo in the AMD Hammer name and also add the missing MSI protocol Scons changes: - In Ruby we now gather up all of the protocols and build them all if there are multiple protocols - There's some bending over backwards to tell the user if they are using an out of date gem5.build/config file and how to update it - Note that multiple ruby protocols adds a significant amount of time to the build since we have to run slicc twice for each file. build_opts: - Update all files with new names - Add a new NULL_All_Ruby that will be used for testing Signed-off-by: Jason Lowe-Power <jason@lowepower.com> | 1 年前 | |
configs: Bug fix for create topology in Ruby.py | 1 年前 | |
config: Delete authors lists from config files. Change-Id: I049f2e97ad00d76341c2aeeaa02279862a8a4d71 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25416 Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> | 6 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 |