[Openmp-commits] [PATCH] D106751: [OpenMP][Libomptarget] Adding `print_device_info` to RTL and `omptarget`
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Jul 25 10:21:58 PDT 2021
JonChesterfield added a comment.
If it's for debugging openmp, we should do the cuda queries once and store their result, then use that resultbin printing and elsewhere. Otherwise there's a risk that the value printed is different to the one used, or that an error will prevent the other queries working in the print when they're done later.
I'd be inclined to do the above and the code cleanup before landing but don't strongly object to refactoring in tree.
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