diff --git a/tooling/planet-gen/run-atlas-naming.sh b/tooling/planet-gen/run-atlas-naming.sh index 36b8b1d5e..bd79d404c 100755 --- a/tooling/planet-gen/run-atlas-naming.sh +++ b/tooling/planet-gen/run-atlas-naming.sh @@ -54,7 +54,10 @@ fi # "amdgcn-amd-amdhsa--gfx1201". If gfx1201 is missing and e.g. only # gfx906 is present, the build shipped kernels for a different arch # and every inference will crash with "invalid device function". -if ! strings "$BIN" 2>/dev/null | grep -qw gfx1201; then +# +# Uses `grep -a` to scan the binary directly so we don't depend on +# `strings` being on PATH (not present on a stock Bazzite host). +if ! grep -a -q gfx1201 "$BIN"; then echo "error: $BIN does not contain gfx1201 kernels" >&2 echo " expected target for AMD Radeon RX 9070 (Navi 48)" >&2 echo " rebuild with CMAKE_HIP_ARCHITECTURES=gfx1201 inside $DISTROBOX_NAME" >&2