[PATCH] D140433: [Clang] Add `nvptx-arch` tool to query installed NVIDIA GPUs

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 21 07:46:55 PST 2022


tianshilei1992 added inline comments.


================
Comment at: clang/tools/nvptx-arch/NVPTXArch.cpp:63
+
+    printf("sm_%d%d\n", Major, Minor);
+  }
----------------
Do we want to include device number here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140433/new/

https://reviews.llvm.org/D140433



More information about the cfe-commits mailing list