From 3ae3f1dc0b5bcfad1d7dee17b13f1385b34e2710 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 29 Nov 2024 14:41:52 +0100 Subject: Print an error message when requesting AVX512 in non-AVX512 build --- mbw.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mbw.c') diff --git a/mbw.c b/mbw.c index 991c37a..e165bdb 100644 --- a/mbw.c +++ b/mbw.c @@ -639,7 +639,14 @@ int main(int argc, char **argv) } } - /* default is to run all tests if no specific tests were requested */ +#ifndef HAVE_AVX512 + if (tests[TEST_AVX512]) { + printf("Error: AVX512 memcpy requested, but this mbw build has been compiled without AVX512 support\n"); + exit(1); + } +#endif + + /* default is to run most tests if no specific tests were requested */ if( (tests[0]+tests[1]+tests[2]+tests[3]+tests[4]+tests[5]) == 0) { tests[0]=1; tests[1]=1; -- cgit v1.2.3