We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c4aaf commit 2d28503Copy full SHA for 2d28503
.github/workflows/sycl-linux-run-tests.yml
@@ -284,11 +284,8 @@ jobs:
284
echo "opts=$CMAKE_EXTRA_ARGS" >> $GITHUB_OUTPUT
285
else
286
if [ "${{ contains(inputs.target_devices, 'ext_oneapi_hip') }}" == "true" ]; then
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
+ amd_arch="$( env ONEAPI_DEVICE_SELECTOR=hip:gpu sycl-ls --verbose 2>&1 | grep 'Architecture:' | sed 's|\s*Architecture: amd_gpu_||g' )"
+ echo 'opts=-DHIP_PLATFORM="AMD" -DAMD_ARCH='$amd_arch'' >> $GITHUB_OUTPUT
292
293
echo 'opts=' >> $GITHUB_OUTPUT
294
fi
0 commit comments