README revision 10235
1360SN/Aregression.py 21458SN/A 3360SN/ACopyright (c) 2010-2014 Advanced Micro Devices, Inc. 4360SN/AAll rights reserved. 5360SN/A 6360SN/ARedistribution and use in source and binary forms, with or without 7360SN/Amodification, are permitted provided that the following conditions are 8360SN/Amet: redistributions of source code must retain the above copyright 9360SN/Anotice, this list of conditions and the following disclaimer; 10360SN/Aredistributions in binary form must reproduce the above copyright 11360SN/Anotice, this list of conditions and the following disclaimer in the 12360SN/Adocumentation and/or other materials provided with the distribution; 13360SN/Aneither the name of the copyright holders nor the names of its 14360SN/Acontributors may be used to endorse or promote products derived from 15360SN/Athis software without specific prior written permission. 16360SN/A 17360SN/ATHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18360SN/A"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19360SN/ALIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20360SN/AA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21360SN/AOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22360SN/ASPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23360SN/ALIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24360SN/ADATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25360SN/ATHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26360SN/A(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272665Ssaidi@eecs.umich.eduOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu 292665Ssaidi@eecs.umich.eduAuthors: Yasuko Eckert <yasuko.eckert@amd.com> 30360SN/A Joel Hestness <hestness@cs.wisc.edu> (while interning at AMD) 31360SN/A 3211793Sbrandon.potter@amd.com 3311793Sbrandon.potter@amd.comIntroduction 342093SN/A============ 3513479Santhony.gutierrez@amd.com 36360SN/AThis regression tester is for the McPAT power model. 37360SN/AThis tester can compile and runs McPAT on the input contained in the 3811911SBrandon.Potter@amd.comspecified directory, and then compares the output to that of a golden run in 396712Snate@binkert.orgorder to ensure that specific power and area calculations do not change. 4013031Sbrandon.potter@amd.com 41360SN/ANine tests are included in the initial version of this tester in the directories: 42360SN/A $GEM5/ext/mcpat/regression/test-* 437680Sgblack@eecs.umich.edu 442474SN/AIn each directory, you will find a regression test input file 45360SN/A(power_region0.xml) and the golden-run output (region0.out.bak). 466658Snate@binkert.orgThe tester's output file is saved as region0.out, which is then checked against 472680Sktlim@umich.eduregion0.out.bak. 4812716Smichael.lebeane@amd.com 492474SN/A 5013031Sbrandon.potter@amd.comOptions 51360SN/A======= 528229Snate@binkert.org--help, -h Show a help message and exit 5311794Sbrandon.potter@amd.com--build, -b Build McPAT before running tests 5411794Sbrandon.potter@amd.com--cleanup, -c Clean up the specified regression directory 556029Ssteve.reinhardt@amd.com--force, -f Force run regression even if directory isn't set up 56360SN/A--maketest, -m Set up the specified test directory 57360SN/A--verbose, -v Print verbose output 582107SN/A 59360SN/A 6013933Sbrandon.potter@amd.comHow to Use 6113933Sbrandon.potter@amd.com========== 6213933Sbrandon.potter@amd.com 6313933Sbrandon.potter@amd.comThe regression tester must be invoked from the McPAT directory. 6413933Sbrandon.potter@amd.com 6513933Sbrandon.potter@amd.com% cd $GEM5/ext/mcpat 661450SN/A 6713995Sbrandon.potter@amd.com 68360SN/ATo run all regression tests: 6911794Sbrandon.potter@amd.com% ./regression/regression.py ./regression/ 702484SN/A 712484SN/A 72360SN/ATo run a particular regression test, specify its directory to the tester: 73360SN/A% ./regression/regression.py ./regression/test-0 74360SN/A 751450SN/ASpecify the "-v" option to see a diff of the regression output. 7613995Sbrandon.potter@amd.com