[libomptarget][amdgpu] Refactor debug printing
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 25 Aug 2021 13:57:50 +0000 (14:57 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 25 Aug 2021 13:57:51 +0000 (14:57 +0100)
commit9b2c6c07b54ac627403d679b8de8f87e90715913
tree38da049cf112471f1b03e6a6bc718b2d522e29fa
parente381833ba5794fde6d36e3fbcc9b22ffbe438d17
[libomptarget][amdgpu] Refactor debug printing

Move most debug printing in rtl.cpp behind DP() macro
Adjust the print output for gpu arch mismatch when the architectures match
Convert an assert into graceful failure

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D108562
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp