/usr/bin/raxmlHPC is in raxml 8.2.11+dfsg-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
RAXMLDIR="$(dirname -- "$(readlink -f -- "$0")")"
NPROCESSOR=`grep -c 'processor[[:space:]:]\+[0-9]\+' /proc/cpuinfo`
NCPUS=`grep '^cpu cores' /proc/cpuinfo | head -n 1 | sed 's/cpu cores[[:space:]:]\+//'`
# That's wrong and lasts way longer than when using NCPUS
# AVX_T=$((NPROCESSOR * NCPUS))
AVX_T=$NCPUS
if grep -q avx /proc/cpuinfo; then
if echo "$@" | grep -q -- '-T[[:space:]]*[0-9]' ; then
echo "Use raxml with AVX support with overriden number of threads"
${RAXMLDIR}/raxmlHPC-PTHREADS-AVX "$@"
else
echo "Use raxml with AVX support ($AVX_T cpus)"
${RAXMLDIR}/raxmlHPC-PTHREADS-AVX -T $AVX_T "$@"
fi
elif grep -q sse3 /proc/cpuinfo; then
if echo "$@" | grep -q -- '-T[[:space:]]*[0-9]' ; then
echo "Use raxml with SSE3 support with overriden number of threads"
${RAXMLDIR}/raxmlHPC-PTHREADS-SSE3 "$@"
else
echo "Use raxml with SSE3 support ($AVX_T cpus)"
${RAXMLDIR}/raxmlHPC-PTHREADS-SSE3 -T $AVX_T "$@"
fi
else
echo "Use raxml with PTHREADS support"
${RAXMLDIR}/raxmlHPC-PTHREADS "$@"
fi
|