diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-11-29 14:41:52 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-11-29 14:41:52 +0100 |
commit | 3ae3f1dc0b5bcfad1d7dee17b13f1385b34e2710 (patch) | |
tree | e5d3a14beacd055be871107d8ec5b0f163cfe0e3 | |
parent | dcdac59f8045a94a7aebdc89e7bda94800412aba (diff) |
Print an error message when requesting AVX512 in non-AVX512 build
-rw-r--r-- | mbw.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |