База ответов ИНТУИТ

Introduction to performance optimization using Intel SW tools

<<- Назад к вопросам

What is critical code?

(Отметьте один правильный вариант ответа.)

Варианты ответа
wrong code
code executed more frequently(Верный ответ)
code, which is not proved to be correct
code, which could be deleted without any changes in results
undocumented code
Похожие вопросы
How many threads could enter the critical section at a time?
Is there any dependence in this code?
DO I=1,N  S1 A(I)=…  S2 …=A(I)END DO
Is there any dependence in this code?
DO I=1,N  S1 A(I+1) =F(I)  S2 F(I+1) = A(I)END DO
"Dead code" may be caused by
How data dependencies are used in the code generation?
Loop invariant code motion
Choose code fragments which are good for optimizing
What benefits would give correct code formatting?
Choose the correct statements for the code:
DO I=1,N  S1 A(I) = B(I) + 1   S2 B(I+1) = A(I) – 5END DO
Choose the code resulting to the loop peeling for:
p = 10; for (i=0; i<10; ++i) {     y[i] = x[i] + x[p];   p = i;}