[V1,2/2] tests/unit_tests_eal: modify code to adapt avx512
Checks
Commit Message
Whatever the rx_mode is, all use "force-max-simd-bitwidth=0" as default parameter.
Signed-off-by: Xiang An <xiangx.an@intel.com>
---
tests/TestSuite_unit_tests_eal.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Comments
> -----Original Message-----
> From: Xiang An <xiangx.an@intel.com>
> Sent: 2021年11月15日 17:58
> To: dts@dpdk.org
> Cc: An, XiangX <xiangx.an@intel.com>
> Subject: [dts][PATCH V1 2/2] tests/unit_tests_eal: modify code to adapt avx512
>
> Whatever the rx_mode is, all use "force-max-simd-bitwidth=0" as default
> parameter.
>
> Signed-off-by: Xiang An <xiangx.an@intel.com>
The subject is confused, force-max-simd-bitwidth=0 means use the maximum simd bitwidth, not 512.
If the testbed is 256, it use AVX2.
thanks
@@ -457,13 +457,14 @@ class TestUnitTestsEal(TestCase):
"""
Run acl autotest.
"""
-
- eal_params = self.dut.create_eal_parameters()
- self.test_app_cmdline += "--no-pci"
+ eal_params = self.dut.create_eal_parameters(other_eal_param='force-max-simd-bitwidth')
+ app_name = self.dut.apps_name['test']
+ test_app_cmdline = app_name + eal_params
+ test_app_cmdline += "--no-pci"
if self.dut.dpdk_version >= '20.11.0':
- self.test_app_cmdline += " --force-max-simd-bitwidth=0"
- self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
+ test_app_cmdline += " --force-max-simd-bitwidth=0"
+ self.dut.send_expect(test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")