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

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

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

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

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

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

Notes:makesureyoustorethenumbersusingvariableoffloatordoubledatatype.Alistofothermetricscanbederivedifyoureadcountersofthosenativeevents,checkoutthis:http://perfsuite.ncsa.illinois.edu/psprocess/metrics.shtml


Recommended