Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Define vectorization in your own words.
Think about how data processing can be accelerated.
What are loop dependencies?
Consider what would happen if the output of one loop iteration was needed in another.
What is vectorization primarily used for?
Think about how speed improves when handling data in bulk.
True or False: Compiler vectorization is always performed.
Consider what might prevent a compiler from optimizing automatically.
Create a C++ function that performs an addition on an array of integers, first written in scalar form and then optimized using manual vectorization. Discuss the performance implications.
Look up SIMD intrinsics for specific platforms to implement the manual vectorization.
Analyze a provided loop’s code for loop dependencies that prevent vectorization. Suggest modifications for optimization.
Consider loop unrolling or redesigning data flow.
4 more questions in this section. Enroll free to practise them all.
Enroll free