llvm
b4d49f5a - [SYCL] Fix AMD GPU architecture detection (#22670)

Commit
83 days ago
[SYCL] Fix AMD GPU architecture detection (#22670) get_architecture() stripped the feature-suffix (e.g. ":sramecc+:xnack-") from the device version string using string_view::substr, but then passed the view's .data() to a helper taking a const char*. Since .data() points into the original, non-truncated buffer, the lookup compared against the full "gfx942:sramecc+:xnack-" string and never matched, yielding architecture::unknown for AMD GPUs whose gcnArchName carries feature flags. Co-authored-by: Zheming Jin <zjin-lcf@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Author
Parents
Loading