Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/gen_slm_files: Replace internal path to slm_conv with public instructions #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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