Skip to content

Commit

Permalink
test/gen_slm_files: Replace internal path to slm_conv with public i…
Browse files Browse the repository at this point in the history
…nstructions
  • Loading branch information
andreaskurth committed Sep 18, 2023
1 parent c8481a9 commit b905a4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hardware/test/gen_slm_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ readonly examples_path="$script_path/../../openmp-examples"

slm_conv='slm_conv-0.3'
if ! which $slm_conv &>/dev/null; then
slm_conv=~andkurt/bin/slm_conv-0.3
# Try unversioned variant of 'slm_conv' executable.
slm_conv='slm_conv'
if ! which $slm_conv &>/dev/null; then
# Neither versioned nor unversioned variant found.
echo "Error: 'slm_conv' not found in PATH. Please install it (e.g. with 'cargo install --git https://github.com/andreaskurth/slm_conv')." >&2
exit 1
fi
# Fall back to unversioned variant.
echo "Warning: 'slm_conv-0.3' not found; falling back to generic 'slm_conv'." >&2
fi
declare -r slm_conv

Expand Down

0 comments on commit b905a4b

Please sign in to comment.