Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

53 строки
2.4KB

  1. sudo apt-get install g++-4.8 python-dev scons swig zlib1g-dev m4
  2. tar xvzf prefetcher.tgz
  3. cd prefetcher/prefetcher
  4. make
  5. Should provide this output
  6. OVERALL PERFORMANCE
  7. ----------------------------------------
  8. PREFETCHER SPEEDUP
  9. ----------------------------------------
  10. adaptive_sequential 1.01
  11. dcpt 1.05
  12. dcpt-p 1.08
  13. none 1.00
  14. rpt 1.06
  15. sequential_on_access 1.01
  16. sequential_on_miss 1.00
  17. tagged 1.01
  18. user 1.01
  19. ----------------------------------------
  20. Installing M5 on Linux
  21. First, download the modified M5 simulator and SPEC CPU2000 benchmarks suite from https://goo.gl/Jg7oFm (NB! 564 MiB large file). Located on OneDrive and requires NTNU login,
  22. Software requirements (specific Debian/Ubuntu packages mentioned in paren- theses):
  23. 3.4.6 <= g++ <= 4.8
  24. Python and libpython >= 2.4 (python and python-dev) Scons > 0.98.1 (scons)
  25. SWIG >= 1.3.31 (swig)
  26. zlib (zlib1g-dev)
  27. m4 (m4)
  28. To install all required packages in one go, issue instructions to apt-get:
  29. sudo apt-get install g++-4.8 python-dev scons swig zlib1g-dev m4
  30. The simulator framework comes packaged as a gzipped tarball. Start the adventure by unpacking with
  31. tar xvzf prefetcher.tgz
  32. This will create a directory named framework.
  33. Build
  34. M5 uses the scons build system:
  35. cd prefetcher/m5/
  36. scons -j2 ./build/ALPHA_SE/m5.opt
  37. builds the optimized version of the M5 binaries.
  38. -j2 specifies that the build process should build two targets in parallel. This is a useful option to cut down on compile time if your machine has several processors or cores.
  39. The included build script compile.sh encapsulates the necessary build commands and options.
  40. CPU2000 benchmark tests
  41. The test prefetcher.py script can be used to evaluate the performance of your prefetcher against the SPEC CPU2000 benchmarks. It runs a selected suite of CPU2000 tests with your prefetcher, and compares the results to some reference prefetchers.
  42. cd ../prefetcher/
  43. make test
  44. The per-test statistics that M5 generates are written to output/<testname-prefetcher>/stats.txt. The statistics most relevant for hardware prefetching are then filtered and aggregated to a stats.txt file in the framework base directory.
  45. cat output/*/stats.txt