Skip to content

Commit cfff1fc

Browse files
authored
sycl : fix test script (ggml-org#22737)
The error: ./examples/sycl/test.sh: line 122: level_zero:${$GGML_SYCL_DEVICE}: bad substitution was thrown whenever the user used this command: ./examples/sycl/test.sh -mg 0 Fix is to get rid of a dollar sign.
1 parent 3980e04 commit cfff1fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/sycl/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ if [ $GGML_SYCL_DEVICE -ne -1 ]; then
119119
echo "Use $GGML_SYCL_DEVICE as main GPU"
120120
#use signle GPU only
121121
GPUS_SETTING="-mg $GGML_SYCL_DEVICE -sm ${SPLIT_MODE}"
122-
export ONEAPI_DEVICE_SELECTOR="level_zero:${$GGML_SYCL_DEVICE}"
122+
export ONEAPI_DEVICE_SELECTOR="level_zero:${GGML_SYCL_DEVICE}"
123123
echo "ONEAPI_DEVICE_SELECTOR=${ONEAPI_DEVICE_SELECTOR}"
124124
else
125125
echo "Use all Intel GPUs, including iGPU & dGPU"

0 commit comments

Comments
 (0)