From bab161c3b6e7a50a69f3eb037c032e3aedc2430f Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Tue, 12 Nov 2024 12:56:27 -0800 Subject: [PATCH] test Signed-off-by: Sarnie, Nick --- .github/workflows/sycl-linux-run-tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sycl-linux-run-tests.yml b/.github/workflows/sycl-linux-run-tests.yml index 5f16efa38f19..b8e896a5da43 100644 --- a/.github/workflows/sycl-linux-run-tests.yml +++ b/.github/workflows/sycl-linux-run-tests.yml @@ -284,9 +284,13 @@ jobs: echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT else if [ "${{ contains(inputs.target_devices, 'ext_oneapi_hip') }}" == "true" ]; then - amd_arch="$(env ONEAPI_DEVICE_SELECTOR=ext_oneapi_hip:gpu sycl-ls --verbose 2>&1 | grep 'Architecture:' | sed 's|\s*Architecture: amd_gpu_||g')" - echo "HERE" - echo $amd_arch + devices="$(env ONEAPI_DEVICE_SELECTOR=ext_oneapi_hip:gpu sycl-ls --verbose 2>&1)" + echo "one" + test="$(echo "$devices" | grep 'Architecture:')" + echo "two" + amd_arch=$(echo "$test" | sed 's|\s*Architecture: amd_gpu_||g') + echo "three" + echo "$amd_arch" echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH='$amd_arch'' >> $GITHUB_OUTPUT else echo 'opts=' >> $GITHUB_OUTPUT