Changes

Jump to: navigation, search

SPO600 Vectorization Lab

199 bytes removed, 22:37, 1 October 2017
no edit summary
# Write a short program that creates two 1000-element integer arrays and fills them with random numbers, then sums those two arrays to a third array, and finally sums the third array to a long int and prints the result.
# Compile this program on [[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>&lt;main&gt;</code> explaining what the code does).# Review '''Prove that the vector instructions code is vectorized''', for AArch64. Find a way to scale an array example, by pointing out the use of sound samples (see Lab 5) by a factor between 0.000-1.000 using vector registers and SIMD. (Note: you may need to convert some data types). You DO NOT need to code this solution (but feel free if you want to!)instructions.
# '''Write a blog post discussing your findings'''. Include:
#* The source code
#* Your annotated dissassembly listing
#* Your reflections on the experience and the results
#* Your proposed volume-sampling-via-SIMD solution.
=== Resources ===

Navigation menu