File tree 4 files changed +21
-0
lines changed
4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ if echo "$FEATURES" | grep -q "ispc"; then
17
17
ALGS+=(" ispc" " ispc_tasks" )
18
18
fi
19
19
20
+ pushd " aobench"
21
+
20
22
echo " Benchmark 256-bit wide vectors"
21
23
RUSTFLAGS=" -C target-cpu=native ${RUSTFLAGS} " \
22
24
cargo build --release --no-default-features \
@@ -28,6 +30,8 @@ if [[ "${VERIFY}" == "1" ]]; then
28
30
--features=" ${FEATURES} ,256bit"
29
31
fi
30
32
33
+ popd
34
+
31
35
if [[ " ${NORUN} " == " 1" ]]; then
32
36
exit 0
33
37
fi
37
41
hyperfine " target/release/aobench ${WIDTH} ${HEIGHT} --algo ${alg} "
38
42
done
39
43
44
+ pushd " aobench"
45
+
40
46
echo " Benchmark 128-bit wide vectors"
41
47
RUSTFLAGS=" -C target-cpu=native ${RUSTFLAGS} " \
42
48
cargo build --release --no-default-features \
43
49
--features=" ${FEATURES} "
50
+
51
+ popd
52
+
44
53
for alg in " ${ALGS[@]} "
45
54
do
46
55
hyperfine " target/release/aobench ${WIDTH} ${HEIGHT} --algo ${alg} "
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ if echo "$FEATURES" | grep -q "ispc"; then
15
15
hash ispc 2> /dev/null || { echo >&2 " ispc is not in PATH." ; exit 1; }
16
16
fi
17
17
18
+ pushd " mandelbrot"
19
+
18
20
RUSTFLAGS=" -C target-cpu=native ${RUSTFLAGS} " \
19
21
cargo build --release --features=" ${FEATURES} "
20
22
@@ -23,6 +25,8 @@ if [[ "${VERIFY}" == "1" ]]; then
23
25
cargo test --release --features=" ${FEATURES} "
24
26
fi
25
27
28
+ popd
29
+
26
30
if [[ " ${NORUN} " == " 1" ]]; then
27
31
exit 0
28
32
fi
Original file line number Diff line number Diff line change @@ -18,9 +18,13 @@ if echo "$FEATURES" | grep -q "ispc"; then
18
18
fi
19
19
20
20
21
+ pushd " options_pricing"
22
+
21
23
RUSTFLAGS=" -C target-cpu=native ${RUSTFLAGS} " \
22
24
cargo build --release --features=" ${FEATURES} "
23
25
26
+ popd
27
+
24
28
if [[ " ${NORUN} " == " 1" ]]; then
25
29
exit 0
26
30
fi
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ if echo "$FEATURES" | grep -q "ispc"; then
14
14
algs+=( " 3" " 4" )
15
15
fi
16
16
17
+ pushd " stencil"
18
+
17
19
RUSTFLAGS=" -C target-cpu=native ${RUSTFLAGS} " \
18
20
cargo build --release --no-default-features \
19
21
--features=" ${FEATURES} "
@@ -24,6 +26,8 @@ if [[ "${VERIFY}" == "1" ]]; then
24
26
--features=" ${FEATURES} "
25
27
fi
26
28
29
+ popd
30
+
27
31
if [[ " ${NORUN} " == " 1" ]]; then
28
32
exit 0
29
33
fi
You can’t perform that action at this time.
0 commit comments