File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
devops/scripts/benchmarking Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 \
273273device 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."
277277fi
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
You can’t perform that action at this time.
0 commit comments