Index: openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp =================================================================== --- openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp +++ openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp @@ -962,8 +962,13 @@ // A cubin generated for a certain compute capability is supported to run // on any GPU with the same major revision and same or higher minor // revision. - 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; + } } return true; } Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp =================================================================== --- openmp/libomptarget/plugins/cuda/src/rtl.cpp +++ openmp/libomptarget/plugins/cuda/src/rtl.cpp @@ -1591,8 +1591,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);