aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_large.cpp
diff options
context:
space:
mode:
authorGravatar Mark D Ryan <mark.d.ryan@intel.com>2018-11-13 16:15:08 +0100
committerGravatar Mark D Ryan <mark.d.ryan@intel.com>2018-11-13 16:15:08 +0100
commit670d56441cbf115652630c890bac1ba41cd20106 (patch)
tree336bd0bddcbf7823f527fd5abd24cf23e10c3f67 /test/product_large.cpp
parent3dc08450468b01ffdd311f3422b3ebfa875f02a0 (diff)
PR 544: Set requestedAlignment correctly for SliceVectorizedTraversals
Commit aa110e681b8b2237757a652ba47da49e1fbd2cd6 optimised the multiplication of small dyanmically sized matrices by restricting the packet size to a maximum of 4, increasing the chances that SIMD instructions are used in the computation. However, it introduced a mismatch between the packet size and the requestedAlignment. This mismatch can lead to crashes when the destination is not aligned. This patch fixes the issue by ensuring that the AssignmentTraits are correctly computed when using a restricted packet size. * * * Bind LinearPacketType to MaxPacketSize This commit applies any packet size limit specified when instantiating copy_using_evaluator_traits to the LinearPacketType, providing that the size of the destination is not known at compile time. * * * Add unit test for restricted packet assignment A new unit test is added to check that multiplication of small dynamically sized matrices works correctly when the packet size is restricted to 4 and the destination is unaligned.
Diffstat (limited to 'test/product_large.cpp')
0 files changed, 0 insertions, 0 deletions