[5/n] Log allocation placement.

Change-Id: I46426d040dda6125d9e0bef7c1960413ba602566
Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
This commit is contained in:
Zdunowski, Piotr 2019-02-27 11:22:10 +01:00 committed by sys_ocldev
parent 54b0ac2f5c
commit a3fc0d0853
3 changed files with 18 additions and 5 deletions

View File

@ -47,6 +47,7 @@ set(RUNTIME_SRCS_OS_INTERFACE_WINDOWS
${CMAKE_CURRENT_SOURCE_DIR}/sys_calls.h
${CMAKE_CURRENT_SOURCE_DIR}/thk_wrapper.h
${CMAKE_CURRENT_SOURCE_DIR}/wddm_32bit_memory.cpp
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/wddm_allocation.cpp
${CMAKE_CURRENT_SOURCE_DIR}/wddm_allocation.h
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/wddm_additional_context_flags.cpp
${CMAKE_CURRENT_SOURCE_DIR}/wddm_device_command_stream.h

View File

@ -0,0 +1,16 @@
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/os_interface/windows/wddm_allocation.h"
namespace OCLRT {
std::string WddmAllocation::getAllocationInfoString() const {
std::stringstream ss;
ss << " Handle: " << handle;
return ss.str();
}
} // namespace OCLRT

View File

@ -83,11 +83,7 @@ class WddmAllocation : public GraphicsAllocation {
void setCpuAddress(void *cpuPtr) { this->cpuPtr = cpuPtr; }
bool needsMakeResidentBeforeLock = false;
std::string getAllocationInfoString() const override {
std::stringstream ss;
ss << " Handle: " << handle;
return ss.str();
}
std::string getAllocationInfoString() const override;
protected:
ResidencyData residency;