[Openmp-commits] [PATCH] D138600: [OpenMP] Add debug info about CC incompatibility
Mark Dewing via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 23 12:43:12 PST 2022
markdewing created this revision.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
markdewing requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
Add a debug message with the compute capability of the device
and the image when they're not compatible.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138600
Files:
openmp/libomptarget/plugins/cuda/src/rtl.cpp
Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -1564,8 +1564,13 @@
// any GPU with the same major revision and same or higher minor revision.
int32_t ImageMajor = ArchStr[0] - '0';
int32_t ImageMinor = ArchStr[1] - '0';
- if (Major != ImageMajor || Minor < ImageMinor)
+ if (Major != ImageMajor || Minor < ImageMinor) {
+ DP("Compute capability of image not compatible with device. Device: %d "
+ "%d "
+ "Image: %d %d\n",
+ Major, Minor, ImageMajor, ImageMinor);
return false;
+ }
}
DP("Image has compatible compute capability: %s\n", Info->Arch);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138600.477581.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221123/c5f1e5f4/attachment.bin>
More information about the Openmp-commits
mailing list