Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Sarnie, Nick <[email protected]>
  • Loading branch information
sarnex committed Nov 12, 2024
1 parent ec39d2a commit bab161c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bab161c

Please sign in to comment.