[Openmp-commits] [openmp] ba85477 - [libomptarget][amdgpu] Fix debug build from D104696

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 24 17:27:59 PDT 2021


Author: Jon Chesterfield
Date: 2021-08-25T01:27:51+01:00
New Revision: ba8547775b0c83ea0818cfb4e9b390d1bab26e42

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

LOG: [libomptarget][amdgpu] Fix debug build from D104696

Added: 
    

Modified: 
    openmp/libomptarget/plugins/amdgpu/impl/data.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/amdgpu/impl/data.cpp b/openmp/libomptarget/plugins/amdgpu/impl/data.cpp
index 9e65b251576bc..1bb890bca404f 100644
--- a/openmp/libomptarget/plugins/amdgpu/impl/data.cpp
+++ b/openmp/libomptarget/plugins/amdgpu/impl/data.cpp
@@ -21,7 +21,7 @@ namespace core {
 hsa_status_t Runtime::HostMalloc(void **ptr, size_t size,
                                  hsa_amd_memory_pool_t MemoryPool) {
   hsa_status_t err = hsa_amd_memory_pool_allocate(MemoryPool, size, 0, ptr);
-  DEBUG_PRINT("Malloced [CPU %d] %p\n", DeviceId, *ptr);
+  DEBUG_PRINT("Malloced %p\n", *ptr);
 
   if (err == HSA_STATUS_SUCCESS) {
     err = core::allow_access_to_all_gpu_agents(*ptr);


        


More information about the Openmp-commits mailing list