6
CSCE 513 Computer Architecture, Fall 2018 Assignment #1, due 09/17/2018, 11:55PM, due 09/17/2018, 11:55PM Covered topics: 1) Quantitative analysis of power/energy and CPU performance; 2) Amdahl’s Law and Effective CPI, 3) Measuring CPI using PAPI Questions COD 1.5 COD 1.6 COD 1.8 COD 1.14 CAQA 1.12 CAQA 1.14 CAQA A3 1.15 Points 15 10 10 20 15 15 15 15 1.15 (15 points) is required for graduate students. Undergraduates who answer receive bonus point. Submission: 1. Only electronic submissions on dropbox are accepted. 2. All your solutions should be included in a SINGLE PDF file. 3. Number your solutions in the same way and in the same order as the questions are numbered in this document and do NOT include the questions as part of your solutions. 4. Include your full name in the PDF file. 5. Scanned copy of handwritten answers will NOT be graded.

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

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

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