diff --git a/util/metaeuk_wrapper.sh b/util/metaeuk_wrapper.sh new file mode 100755 index 0000000..f9e0aa6 --- /dev/null +++ b/util/metaeuk_wrapper.sh @@ -0,0 +1,13 @@ +#!/bin/sh +FLAGS="$(grep -m 1 '^flags' /proc/cpuinfo)" +case "${FLAGS}" in + *avx2*) + exec /usr/local/bin/metaeuk_avx2 "$@" + ;; + *sse4_1*) + exec /usr/local/bin/metaeuk_sse41 "$@" + ;; + *) + exec /usr/local/bin/metaeuk_sse2 "$@" + ;; +esac