Skip to content

Commit

Permalink
[CI] Fix AMDGPU arch flag for Codeplay runner (intel#16053)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
sarnex authored Nov 12, 2024
1 parent b1f4cf7 commit f9c4aaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ jobs:
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
else
if [ "${{ contains(inputs.target_devices, 'ext_oneapi_hip') }}" == "true" ]; then
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"' >> $GITHUB_OUTPUT
if [ "${{ runner.name }}" == "cp-amd-runner" ]; then
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1030"' >> $GITHUB_OUTPUT
else
echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"' >> $GITHUB_OUTPUT
fi
else
echo 'opts=' >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit f9c4aaf

Please sign in to comment.