[Openmp-commits] [PATCH] D106751: [OpenMP][Libomptarget] Adding `print_device_info` to RTL and `omptarget`
Jose Manuel Monsalve Diaz via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jul 24 15:21:12 PDT 2021
josemonsalve2 added a comment.
In D106751#2902593 <https://reviews.llvm.org/D106751#2902593>, @JonChesterfield wrote:
> Not obvious to me that the functionality has much to do with the plugin. Could do a standalone tool instead?
>
> I think there's a tool called nvidia-smi that does something similar. There's definitely one called rocminfo that does. The latter prints 'human readable' output, which gets in the way of scripting with it.
Jon, the idea is to be able to have this information as seen from the Libomptarget and runtime itself. It doesn’t really intend to replace the stand alone tool for each vendor. Developers using openMP could isolate the runtime and its view of the system without having to write code and compile it. I’m thinking of adding the value that goes on the -fopenmp-targets flag so the user knows what devices are supported and how to compile for them. And what are their characteristics.
Think of remote offloading, virtual GPU and other targets that may not have access to an nvidia-smi like tool. I believe this is also why PGI provides it as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106751/new/
https://reviews.llvm.org/D106751
More information about the Openmp-commits
mailing list