csce 513 computer architecture, fall 2018 · csce 513 computer architecture, fall 2018 assignment...
TRANSCRIPT
![Page 1: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/1.jpg)
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.
![Page 2: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/2.jpg)
1)Quantitativeanalysisofpower/energyandCPUperformance;(questionsarefromCODtextbook)
![Page 3: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/3.jpg)
2)Amdahl’sLawandEffectiveCPICAQA1.12:a,b,c
CAQA1.14:a,b,c
![Page 4: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/4.jpg)
CAQAA.3,assume60%ofbranchinstructionsaretaken.
![Page 5: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/5.jpg)
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:
![Page 6: CSCE 513 Computer Architecture, Fall 2018 · CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative](https://reader033.vdocument.in/reader033/viewer/2022053021/604ae9144d2bb510fe7ec74f/html5/thumbnails/6.jpg)
Notes:makesureyoustorethenumbersusingvariableoffloatordoubledatatype.Alistofothermetricscanbederivedifyoureadcountersofthosenativeevents,checkoutthis:http://perfsuite.ncsa.illinois.edu/psprocess/metrics.shtml