[PATCH] D153725: [clang] Make amdgpu-arch tool work on Windows
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 7 09:20:29 PDT 2023
yaxunl marked 5 inline comments as done.
yaxunl added inline comments.
================
Comment at: clang/tools/amdgpu-arch/AMDGPUArch.cpp:50
+#else
+ return printGPUsByHSA();
+#endif
----------------
jhuber6 wrote:
> arsenm wrote:
> > The HIP path should work on linux too. I generally think we should build as much code as possible on all hosts, so how about
> > ```
> > #ifndef _WIN32
> > if (tryHSA())
> > return 0;
> > #endif
> >
> > tryHIP()
> > ```
> >
> >
> >
> That'd be fine, I'm in favor of sticking to HSA since it's a smaller runtime that's more reasonable to build standalone without the whole ROCm stack.
done
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153725/new/
https://reviews.llvm.org/D153725
More information about the cfe-commits
mailing list