[clang] [offload-arch] Report failure when KFD topology cannot be read (PR #217449)

A. Cauble via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 03:32:15 PDT 2026


================
@@ -70,8 +82,10 @@ int printGPUsByKFD() {
   // Sort the devices by their node to make sure it prints in order.
   llvm::sort(Devices, [](auto &L, auto &R) { return L.first < R.first; });
   for (const auto &[Node, GFXVersion] : Devices)
-    std::fprintf(stdout, "gfx%ld%ld%lx\n", getMajor(GFXVersion),
-                 getMinor(GFXVersion), getStep(GFXVersion));
+    outs() << "gfx" << getMajor(GFXVersion) << getMinor(GFXVersion)
----------------
accauble wrote:

Only related because there are a couple tests that check the listed GPUs and arsenm requested llvm streams for that.

https://github.com/llvm/llvm-project/pull/217449


More information about the cfe-commits mailing list