]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_memcpy_perf.c
app/test: adjust alignment unit for memcpy performance
[dpdk.git] / app / test / test_memcpy_perf.c
index 754828e9d7ceff0f82598056245f52412d075d8f..73babece6d0690a61303a66e6c2de1f104916ac5 100644 (file)
@@ -79,7 +79,13 @@ static size_t buf_sizes[TEST_VALUE_RANGE];
 #define TEST_BATCH_SIZE         100
 
 /* Data is aligned on this many bytes (power of 2) */
+#ifdef RTE_MACHINE_CPUFLAG_AVX512F
+#define ALIGNMENT_UNIT          64
+#elif RTE_MACHINE_CPUFLAG_AVX2
 #define ALIGNMENT_UNIT          32
+#else /* RTE_MACHINE_CPUFLAG */
+#define ALIGNMENT_UNIT          16
+#endif /* RTE_MACHINE_CPUFLAG */
 
 /*
  * Pointers used in performance tests. The two large buffers are for uncached