1,885
edits
Changes
no edit summary
{{Admon/lab|Purpose of this Lab|This lab is designed to explore single instruction/multiple data (SIMD) vectorization, and the auto-vectorization capabilities of the GCC compiler.}}
== Lab 5 4 ==
# Write a short program that creates two 1000-element integer arrays and fills them with random numbers in the range -1000 to +1000, then sums those two arrays element-by-element to a third array, and finally sums the third array and prints the result.
# Compile this program on one of the AArch64/ARM64 [[SPO600 Servers#AArch64: aarchie|aarchie]] in such a way that the code is auto-vectorized.
# Annotate the emitted code (i.e., obtain a dissassembly via <code>objdump -d</code> and add comments to the instructions in <code><main></code> explaining what the code does).
# Write a blog post discussing your findings. Include: