From 13f1e64ebffa30801afab72ec4eb8ad6080d5f32 Mon Sep 17 00:00:00 2001 From: Nick Croucher Date: Fri, 7 Jun 2024 14:46:30 +0100 Subject: [PATCH] Improve AVX RAxML selection --- python/gubbins/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/gubbins/utils.py b/python/gubbins/utils.py index dc19a8fe..5eff6e00 100644 --- a/python/gubbins/utils.py +++ b/python/gubbins/utils.py @@ -121,7 +121,8 @@ def choose_executable_based_on_processor(list_of_executables: list): for executable in list_of_executables: if cpu_info and 'AVX2' in executable and 'avx2' in flags and which(executable): break - elif cpu_info and 'AVX' in executable and 'avx' in flags and which(executable): + elif cpu_info and ('AVX' in executable and 'AVX2' not in executable)\ + and ('avx' in flags and 'avx2' not in flags) and which(executable): break elif cpu_info and 'SSE3' in executable and 'sse3' in flags and which(executable): break