File: VeryFastTree-simd

package info (click to toggle)
veryfasttree 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,308 kB
  • sloc: cpp: 7,403; python: 209; sh: 38; makefile: 36
file content (16 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

BASE=/usr/libexec/VeryFastTree/VeryFastTree

test_and_run () {
	if grep -q "$1" /proc/cpuinfo && [ -x "${BASE}-$1" ]; then
		cmd="${BASE}-$1"
		shift
		exec "${cmd}" "$@"
	fi
}

for SIMD in avx512f avx2 avx sse4_1 ; do test_and_run ${SIMD} "$@" ; done

# fallback to base option
exec "${BASE}-sse2" "$@"