Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 141ec9e

Browse files
committed
test/gen_slm_files: Replace internal path to slm_conv with public instructions
1 parent c8481a9 commit 141ec9e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

hardware/test/gen_slm_files.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ readonly examples_path="$script_path/../../openmp-examples"
88

99
slm_conv='slm_conv-0.3'
1010
if ! which $slm_conv &>/dev/null; then
11-
slm_conv=~andkurt/bin/slm_conv-0.3
11+
# Try unversioned variant of 'slm_conv' executable.
12+
slm_conv='slm_conv'
13+
if ! which $slm_conv &>/dev/null; then
14+
# Neither versioned nor unversioned variant found.
15+
echo "Error: 'slm_conv' not found in PATH. Please install it, (e.g. with 'cargo install --git https://github.com/andreaskurth/slm_conv')." >&2
16+
exit 1
17+
fi
18+
# Fall back to unversioned variant.
19+
echo "Warning: 'slm_conv-0.3' not found; falling back to generic 'slm_conv'." >&2
1220
fi
1321
declare -r slm_conv
1422

0 commit comments

Comments
 (0)