Skip to content

Commit

Permalink
Improve AVX RAxML selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Jun 7, 2024
1 parent 04f27d8 commit 13f1e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/gubbins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13f1e64

Please sign in to comment.