[Openmp-commits] [openmp] 4b0c285 - [NFC][OpenMP] Fix compile warnings introduced by D134396
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 28 08:22:48 PDT 2022
Author: Shilei Tian
Date: 2022-10-28T11:22:43-04:00
New Revision: 4b0c285ef24039146fa6eee39b614820664987a0
URL: https://github.com/llvm/llvm-project/commit/4b0c285ef24039146fa6eee39b614820664987a0
DIFF: https://github.com/llvm/llvm-project/commit/4b0c285ef24039146fa6eee39b614820664987a0.diff
LOG: [NFC][OpenMP] Fix compile warnings introduced by D134396
Added:
Modified:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h
index cd39e086a295..e93ade03eed6 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h
@@ -27,7 +27,7 @@ namespace omp {
namespace target {
namespace plugin {
-struct DeviceImageTy;
+class DeviceImageTy;
struct GenericDeviceTy;
using namespace llvm::object;
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
index 4a2c72765790..b71b980c43ea 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
@@ -63,7 +63,8 @@ Error GenericKernelTy::launch(GenericDeviceTy &GenericDevice, void **ArgPtrs,
getNumBlocks(GenericDevice, NumTeamsClause, LoopTripCount, NumThreads);
INFO(OMP_INFOTYPE_PLUGIN_KERNEL, GenericDevice.getDeviceId(),
- "Launching kernel %s with %d blocks and %d threads in %s mode\n",
+ "Launching kernel %s with %" PRIu64
+ " blocks and %d threads in %s mode\n",
getName(), NumBlocks, NumThreads, getExecutionModeName());
return launchImpl(GenericDevice, NumThreads, NumBlocks, DynamicMemorySize,
More information about the Openmp-commits
mailing list