Question: 3. Vectorizing Loop Nests (30 marks) Consider the folloving loop nest that computes the lengths of many strings. for( i++ char *pstr[i]; i-e; in; )

3. Vectorizing Loop Nests (30 marks) Consider the folloving loop nest that computes the lengths of many strings. for( i++ char *pstr[i]; i-e; in; ) { while( *p Ptt; len[i] str[i]; = p - Comment, with a reasonable explanation, on the relative abilities of parallelizing and vectorizing compilers to compile this loop nest. A parallelizing compiler breaks a loop nest into multiple threads. A vectorizing compiler expresses a loop-nest computation using vector instructions 3. Vectorizing Loop Nests (30 marks) Consider the folloving loop nest that computes the lengths of many strings. for( i++ char *pstr[i]; i-e; in; ) { while( *p Ptt; len[i] str[i]; = p - Comment, with a reasonable explanation, on the relative abilities of parallelizing and vectorizing compilers to compile this loop nest. A parallelizing compiler breaks a loop nest into multiple threads. A vectorizing compiler expresses a loop-nest computation using vector instructions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
