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

Introduction to performance optimization using Intel SW tools

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

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

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

Варианты ответа
loop-independent dependence
no dependence
loop-carried dependence(Верный ответ)
Похожие вопросы
Is there any dependence in this code?
DO I=1,N  S1 A(I)=…  S2 …=A(I)END DO
When the dependence <S1,S2> is output-dependence
When the dependence <S1,S2> is true dependence
When the dependency <S1,S2> is anti-dependence?
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;} 
Choose the correct statements for this code:
S1 PI = 3.14S2 R  = 5S3 AREA = PI*R **2
What is critical code?
"Dead code" may be caused by
Loop invariant code motion