final-studyguide-Apr2011

final-studyguide-Apr2011 - Programming for Performance...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Programming for Performance (ECE459): Study Questions for Final This open-book final will have 6 questions, worth 20 points each. Of those 6 questions, 1 may be short answer (fill-in-the-blank), and 1 or 2 may be on pre-midterm material (not included here). This is a preliminary version of the question list. I may modify it based on feedback from you and the TAs. Ill post a final version by the end of Friday. Answer the questions in your answer book. You may consult any printed material (books, notes, etc). Question 1: OpenMP Here are some potential questions. If there is an OpenMP question, it will look like these. Explain what each of the OpenMP pragmas does in an example like: http://people.sc.fsu.edu/ ~ jburkardt/c_src/heated_plate_open_mp/heated_plate_ open_mp.c In particular, assume that OMP NUM THREADS is 4 and draw a diagram explaining what the threads do for each of the parallel sections. Pretend that Ive removed the pragmas from the above code. Add back appropriate OpenMP pragmas. (I might also do that for code which needs tasks.) Pretend Ive removed visibility qualifiers from the code; manually infer the appropri- ate ones and explain why you chose them. (Or you might have to choose between firstprivate and copyin , etc.) Show me the difference between parallel sections and tasks using an example. You might also use a diagram here....
View Full Document

This note was uploaded on 09/22/2011 for the course ECE 459 taught by Professor Patricklam during the Spring '11 term at Waterloo.

Page1 / 5

final-studyguide-Apr2011 - Programming for Performance...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online