summaryrefslogtreecommitdiff
path: root/mbw.c
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-11-29 14:41:52 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-11-29 14:41:52 +0100
commit3ae3f1dc0b5bcfad1d7dee17b13f1385b34e2710 (patch)
treee5d3a14beacd055be871107d8ec5b0f163cfe0e3 /mbw.c
parentdcdac59f8045a94a7aebdc89e7bda94800412aba (diff)
Print an error message when requesting AVX512 in non-AVX512 build
Diffstat (limited to 'mbw.c')
-rw-r--r--mbw.c9
1 files changed, 8 insertions, 1 deletions
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;