Skip to content

Commit f9c4aaf

Browse files
authored
[CI] Fix AMDGPU arch flag for Codeplay runner (#16053)
New HIP runner is up and running but it's a different card so we need a different arch flag. Not the cleanest solution but this isn't really going to scale. Confirmed working [here](https://github.com/intel/llvm/actions/runs/11801446093/job/32875423501). Signed-off-by: Sarnie, Nick <[email protected]>
1 parent b1f4cf7 commit f9c4aaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@ jobs:
284284
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
285285
else
286286
if [ "${{ contains(inputs.target_devices, 'ext_oneapi_hip') }}" == "true" ]; then
287-
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"' >> $GITHUB_OUTPUT
287+
if [ "${{ runner.name }}" == "cp-amd-runner" ]; then
288+
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1030"' >> $GITHUB_OUTPUT
289+
else
290+
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"' >> $GITHUB_OUTPUT
291+
fi
288292
else
289293
echo 'opts=' >> $GITHUB_OUTPUT
290294
fi

0 commit comments

Comments
 (0)