CSCE513ComputerArchitecture,Fall2018Assignment#1,due09/17/2018,11:55PM,due09/17/2018,11:55PMCoveredtopics:1)Quantitativeanalysisofpower/energyandCPUperformance;2)Amdahl’sLawandEffectiveCPI,3)MeasuringCPIusingPAPIQuestions COD
1.5COD1.6
COD1.8
COD1.14
CAQA1.12
CAQA1.14
CAQAA3
1.15
Points 15 10 10 20 15 15 15 151.15(15points)isrequiredforgraduatestudents.Undergraduateswhoanswerreceivebonuspoint.Submission:1. Onlyelectronicsubmissionsondropboxareaccepted.2. AllyoursolutionsshouldbeincludedinaSINGLEPDFfile.3. NumberyoursolutionsinthesamewayandinthesameorderasthequestionsarenumberedinthisdocumentanddoNOTincludethequestionsaspartofyoursolutions.
4. IncludeyourfullnameinthePDFfile.5. ScannedcopyofhandwrittenanswerswillNOTbegraded.
1)Quantitativeanalysisofpower/energyandCPUperformance;(questionsarefromCODtextbook)
2)Amdahl’sLawandEffectiveCPICAQA1.12:a,b,c
CAQA1.14:a,b,c
CAQAA.3,assume60%ofbranchinstructionsaretaken.
3)MeasuringCPIusingPAPI1.15Thesum_full.cfunctionintheclasswebsite(https://passlab.github.io/CSCE513/exercises/sum/)currentlymeasurestheexecutiontimeofsumusingtimerandinthisassignment,youwilladdPAPIcallsinthesum_full.cprogramtocollecttotalinstructioncountandtotalcyclesspentofthecalltosumfunction,andthencalculateinyourprogramtheCPIandCPUtime(s)ofthecallusingthemodelwediscussedintheclass.Yourprogramshouldalsoincludeaprintfcalltooutputthefournumbers:totalinstructioncount,totalcycles,CPI,andCPUtime(s).Inyoursubmission,pleaseincludeascreenshotyourprogramexecutionandoutput.Pleaserefertotheresourcesectionoftheclasswebsite(https://passlab.github.io/CSCE513/resources/#papi)forlearninghowtoprogramusingthePAPIinterface.https://passlab.github.io/CSCE513/resources/papi_install_run.htmlpagegivesinstructionsforinstallingandusingPAPI.ThereisabittrickyofPAPIreadinginthepapi_example.cfilebecauseitdoesnothandlecounterresetandcounteroverflowforthesakeofsimplicity.Itdoesnotalwaysgivemeaningfulnumberineveryrun.Youneedtorunmultipletimesandpicktheonethatgiveyoumeaningfulresults.CPUclockratecanbeobtainedbycheckingtheoutputofthecommand“cat/proc/cpuinfo”,seebelow:
Notes:makesureyoustorethenumbersusingvariableoffloatordoubledatatype.Alistofothermetricscanbederivedifyoureadcountersofthosenativeevents,checkoutthis:http://perfsuite.ncsa.illinois.edu/psprocess/metrics.shtml