[Openmp-commits] [openmp] 49e976c - [OpenMP][NVPTX] Fix a warning that data argument not used by format string

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Mon Sep 20 14:22:19 PDT 2021


Author: Shilei Tian
Date: 2021-09-20T17:22:14-04:00
New Revision: 49e976c9343253956a7de93f1d982537f9c240ab

URL: https://github.com/llvm/llvm-project/commit/49e976c9343253956a7de93f1d982537f9c240ab
DIFF: https://github.com/llvm/llvm-project/commit/49e976c9343253956a7de93f1d982537f9c240ab.diff

LOG: [OpenMP][NVPTX] Fix a warning that data argument not used by format string

Reviewed By: jhuber6, grokos

Differential Revision: https://reviews.llvm.org/D110104

Added: 
    

Modified: 
    openmp/libomptarget/plugins/cuda/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
index aaff0d3cd2ce9..0f61f6c6de074 100644
--- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -547,7 +547,8 @@ class DeviceRTLTy {
     if (const char *EnvStr = getenv("LIBOMPTARGET_SHARED_MEMORY_SIZE")) {
       // LIBOMPTARGET_SHARED_MEMORY_SIZE has been set
       DynamicMemorySize = std::stoi(EnvStr);
-      DP("Parsed LIBOMPTARGET_SHARED_MEMORY_SIZE", DynamicMemorySize);
+      DP("Parsed LIBOMPTARGET_SHARED_MEMORY_SIZE = %" PRIu64 "\n",
+         DynamicMemorySize);
     }
 
     StreamManager =


        


More information about the Openmp-commits mailing list