Skip to content

Commit cf886e9

Browse files
committed
Apparently posix shell doesn't have herestrings
1 parent e5a12b8 commit cf886e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

devops/scripts/benchmarking/benchmark.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ fi
265265

266266
# Make sure ONEAPI_DEVICE_SELECTOR doesn't try to enable multiple devices at the
267267
# same time, or use specific device id's
268-
_dev_sel_backend_re="$(sed 's/,/|/g' <<< "$DEVICE_SELECTOR_ENABLED_BACKENDS")"
269-
_dev_sel_device_re="$(sed 's/,/|/g' <<< "$DEVICE_SELECTOR_ENABLED_DEVICES")"
268+
_dev_sel_backend_re="$(echo "$DEVICE_SELECTOR_ENABLED_BACKENDS" | sed 's/,/|/g')"
269+
_dev_sel_device_re="$(echo "$DEVICE_SELECTOR_ENABLED_DEVICES" | sed 's/,/|/g')"
270270
_dev_sel_re="s/($_dev_sel_backend_re):($_dev_sel_device_re)//"
271-
if [ -n "$(sed -E "$_dev_sel_re" <<< "$ONEAPI_DEVICE_SELECTOR" )" ]; then
271+
if [ -n "$(echo "$ONEAPI_DEVICE_SELECTOR" | sed -E "$_dev_sel_re")" ]; then
272272
echo "Unsupported \$ONEAPI_DEVICE_SELECTOR value: please ensure only one \
273273
device is selected, and devices are not selected by indices."
274274
echo "Enabled backends: $DEVICE_SELECTOR_ENABLED_BACKENDS"
@@ -277,7 +277,7 @@ device is selected, and devices are not selected by indices."
277277
fi
278278
# ONEAPI_DEVICE_SELECTOR values are not valid directory names in unix: this
279279
# value lets us use ONEAPI_DEVICE_SELECTOR as actual directory names
280-
DEVICE_SELECTOR_DIRNAME="$(sed 's/:/-/' <<< "$ONEAPI_DEVICE_SELECTOR")"
280+
DEVICE_SELECTOR_DIRNAME="$(echo "$ONEAPI_DEVICE_SELECTOR" | sed 's/:/-/')"
281281

282282
# Clean up and delete all cached files if specified:
283283
[ ! -z "$_cleanup" ] && cleanup

0 commit comments

Comments
 (0)