Docsity

Paper 3 Questions - Computer Architecture | ECE 511, Papers of Computer Architecture and Organization

Toggle sidebar
bg1
Q: EPIC takes a non-unit assumed latency approach to decrease hardware
complexity and costs.
True or False
Q: EPIC uses 5 bits for a template specifier to completely encode all
instances of no-op instructions within a bundle.
True or False
Contributor: Amit Patel <[email protected]>
____________________________________________________________________
Q: Which statement(s) is(are) true?
(A) Parallel architecture includes two types: SIMD and MIMD.
(B) Shared Memory Model is the most common SIMD architecture.
(C) In a SIMD system, each processor performs same instruction but on different data.
(D) Perfomance of SIMD is worse than MIMD because synchronization is required in
SIMD every step.
Q: Considering serialization, which schedule(s) is(are) correct?
(A)
time Process A Process B
Read(A)
A = A+1
Write(A)
Read(A)
A = A / 3
Write(A)
Read(B)
B = B+1
Write(B)
Read(B)
B = B / 3
Write(B)
(B)
time Process A Process B
Read(A)
A = A+1
Write(A)
Read(A)
A = A / 3
Write(A)
Read(B)
B = B / 3
Write(B)
Read(B)
B = B+1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Paper 3 Questions - Computer Architecture | ECE 511 and more Papers Computer Architecture and Organization in PDF only on Docsity!

Q: EPIC takes a non-unit assumed latency approach to decrease hardware complexity and costs. True or False

Q: EPIC uses 5 bits for a template specifier to completely encode all instances of no-op instructions within a bundle. True or False

Contributor: Amit Patel

Q: Which statement(s) is(are) true? (A) Parallel architecture includes two types: SIMD and MIMD. (B) Shared Memory Model is the most common SIMD architecture. (C) In a SIMD system, each processor performs same instruction but on different data. (D) Perfomance of SIMD is worse than MIMD because synchronization is required in SIMD every step.

Q: Considering serialization, which schedule(s) is(are) correct? (A) time Process A Process B Read(A) A = A+ Write(A) Read(A) A = A / 3 Write(A) Read(B) B = B+ Write(B) Read(B) B = B / 3 Write(B)

(B) time Process A Process B Read(A) A = A+ Write(A) Read(A) A = A / 3 Write(A) Read(B) B = B / 3 Write(B) Read(B) B = B+

Write(B)

(C)

time Process A Process B Read(A) A = A+ Write(A) Read(B) B = B+ Write(B) Read(A) A = A / 3 Write(A) Read(B) B = B / 3 Write(B)

(D) time Process A Process B Read(A) A = A / 3 Write(A) Read(A) A = A+ Write(A) Read(B) B = B+ Write(B) Read(B) B = B / 3 Write(B)

Contributor: Qilun Liu

Q1. Which of the following statements are true with regard to bus-based multiprocessor systems using an invalidation protocol.

(1) Increasing the cache size reduces the number of capacity misses in a similar manner as in case of uniprocessor systems.

(2) Increasing block size of for a cache reduces the miss rate due to an increase in the spatial locality and shared data.

order accoding to the original code sequence. This is because the multiple instructions in a basic block would share a sentinel, and so the first sentinel executed will signal the first exception.

  1. If a lock is free most of the time, a test-and-test-and-set lock should be used. On the other hand, if a lock would usually be in use when a processor tries to acquire it, a test-and-set lock should be used.

Question B: Which of the following loops are vectorizable:

for(i=0; i<512; i++){ a[i+1] = a[i]+c[i]; }

for(i=0; i<512; i++){ a[i] = b[i] + c[i]; }

for(i=0; i<512; i++){ a[i] = b[i] + c[i]; d[i] = a[i]*2; }

for(i=0; i<512; i++){ a[i] = b[i] + c[i]; b[i+1] = e[i] - g[i]; }

for(i=0; i<512; i++){ a[i] = b[i] + c[i]; b[i+1] = e[i] - a[i]; }

Unchained vector operation latency Question C: How long will the following sequence of vector operations take on a vector processor which does not support chaining, but has two load pipelined, one add pipeline, and one multiple pipeline? Assume the processor has a latency of 10 cycles until the first result of a vector becomes available, produces 1 result/cycle thereafter, and has 64-element vector registers. All operations in this sequence use full-length vectors.

LDV v1, r LDV v2, r ADDV v3, v1, v MULV v4, v3, v

Contributor: Anand Shukla [email protected]

Q: All of the following are advantages of a VLIW system over a UAL out-of-order execution processor: no run-time dependence checks, no run-time scheduling decisions, no register renaming, simpler hardware, and a less complex compiler.

Q: This code: for i=1...N { b(i) = a(i-1) + b(i) a(i) = b(i) + c(i) } is equivalent to this vectorized code: d(1:N) = a(0:N-1) + c(1:N) b(1:N) = a(0:N-1) + b(1:N) a(1:N) = d(1:N) + b(1:N)

Contributor: Charles Clancy [email protected]

Which of the following was said by Professor Hwu in one of his lectures during the fall 2002 semester?

a) "Computer Architecture is only limitted by your imagination and your ability to translate your imagination into real logic" b) "Computer Architecture is highly contaminated by the amount of money available in the industry" c) "Don't use your winter coat on August 1st"

Q: One of the advantages of of Shared Memory (in Multiprocessors) is that they they have lower overhead for communication.

Contributor: Gustavo Medina [email protected]

  1. According to the paper, "A VLIW architecture for a Trace Scheduling Compiler", the Multiflow computer's instructions cache would have to be flushed on each context switch. T/F
  2. According to the paper, "Compiler Technology for Future Microprocessors", predicated execution trades instruction fetch efficiency for the capability to expose ILP to the hardware along multiple execution paths. T/F

Contributor: Russell Schreiber [email protected]

  1. According to the paper "Three Architectural Models for Compiler-Controlled Speculative Execution", which of the following is/are true about the scheduling of superblocks?

A. For superblock loops with a large number of iterations,

  1. In IA-64, Memory Conflict Buffer(MCB) is used to detect potential conflict of memory access. An entry in MCB records 1 address word and 1 destination register to serve this purpose.

Contributor: Chao Huang [email protected]

In "A Comparison of Full and Partial Predicated Execution Support for ILP Processors" the compiler used a structure called a hyperblock in which: (a) control could only enter from the top basic block and leave in the last basic block (b) control could enter any basic block and leave any basic block (c) control could only enter the top basic block and leave any basic block (d) control could enter any basic block and leave only in the last basic block

In "Cydra 5 departmental supercomputer" schedule tearing can occur when: (a) an instruction is delayed and prevents instructions ahead of it to be stalled (b) exception handling code is inserted into a schedule (c) a mispredicted branch instruction must be removed (d) there exists resouce conflicts that cannot be resolved

Contributor: [email protected]

  1. The cache coherence problem is discussed in the class recently. A state diagram for our Illinois Protocol may be found on the ECE website. Suppose that this protocol is used in a system with two processors M1 and M2 with a value 8 store in address A1. All cache locations start out in the Invalid state. Here is a sequence of memory accesses: . M1 reads A . M1 writes 24 to A . M2 reads A . M2 writes 48 to A

Which is the possible part of an action sequence in address A1 of cache?

A. M1 in Exclusive state -> M1 in Modified state ->

-> M2 in Shared state -> M1 in Modified state -> -> M2 in Modified state -> M1 in Modified state

B. M1 in Invalid state -> M2 in Invalid state -> -> M2 in Shared state, M1 in Exclusive state -> -> M2 in Modified state, M1 in Invalid state

C. M1 in Invalid state -> M1 in Exclusive state -> -> M2 in Shared state -> M1 in Shared state -> -> M2 in Shared state, M1 in Invalid state

D. M1 in Exclusive state -> M1 in Modified state -> -> M2 in Shared state, M1 in Shared state -> -> M2 in Modified state, M1 in Invalid state

E. None of above

  1. Which of the following statements are true about VLIW, vector and superscalar?

A. In the VLIW architecture, the burden of choosing which instructions can be issued simultaneously falls on the compiler. B. Software pipelining is a technique that allows for the simultaneous execution of instructions from multiple loops. C. Vector is better when different operations occur in parallel instead of the same operation on multiple elements. D. Superscalars have a superior performance when dependencies are better determined at run time or if a VLIW compiler is not powerful enough to identify the same dependencies statically.

Contributor: Weining Gu [email protected]

Which of the following is true of the general code percolation model discussed in "Three Architectural Models for Compiler-Controlled Speculative Execution" (Chang, Warter, Mahlke, Chen, Hwu 1995)?

A) Code compiled with general code percolation will not necessarily raise an exception when an exception condition occurs.

B) Page fault handling is delayed until the branch commits.

C) Memory loads cannot percolate above branches.

D) In the dependence graph, control dependence arcs can be

Contributor: Tyler Ralston [email protected]

  1. What major approaches are used to maintain cache coherence in multi-processor systems:

a) locks b) test and add c) snooping d) directory based

  1. In a Directory-Based Cache coherence protocol what information must be tracked in a directory entry?

a) The state of each cache block. eg (shared, uncached, exclusive) b) Processors that have copies of the block when it is shared c) State updates sent on the bus by the home node d) Copy of the data being shared

Contributor: Yury Perzov

  1. Referenced Paper: Compiler Technology for Future Microprocessors by Wen-mei W. Hwu et al.

Qn: Is the statement "There is a loop-carried register anti-dependence when an instruction in an earlier iteration reads the same memory location overwritten by an instruction in a later iteration." true or false?

  1. Reference Text: Computer Architecture A Quantitative Approach 2nd Edition by Hennessy and Patterson.

Qn: According to Hennessy and Patterson, "Coherence defines the behavior of reads and writes to the same memory location, while (memory) consistency defines the behavior of reads and writes with respect to accesses to other memory locations.", is that true or false?

Contributor: Chee Wai Lee [email protected]

Q: On multiprocessors with multilevel caches, coherence between caches of differing block sizes is a problem. Hennessy and Patterson, in Ch. 6, note that most multiprocessors solve this problem by:

a) Probing the higher cache levels after a lower level cache word replacement, and invalidating that word in the higher level caches.

b) Not maintaining the inclusion property, and snooping the higher level caches. c) Using a constant block size on all cache levels, but increasing associativity on the lower levels. d) Making sure cache block size is strictly a multiple of the block size of the lower level cache.

Q: In the Sentinel Scheduling model for speculative execution [Mahlke, 1993], all store instructions are unprotected because:

a) Experimental data shows little benefit in performing speculative stores. b) All instructions which overwrite an operand in an instruction interval’s live set may not be scheduled in the interval. c) Deadlock can occur when attempting to insert a store into a full store buffer, and the entry at the head of the store buffer is unconfirmed. d) Store instructions have no destination register.

Contributor: Jeff Stine [email protected]

Question 1

In IA-64, since the instructions in the same bundle is free of dependence with each other, instructions in the same bundle will always be issued in the same cycle.(true or false)

Question 2

In the "A VLIW Architecture for a Trace Scheduling Compiler" paper, pipeline interlock and pipeline stall won't happen in the VLIW machine TRACE since the complier will manage the runtime resource usage.(True/False)

Contributor: Victor Ma [email protected]