diff --git a/runtime/os_interface/windows/CMakeLists.txt b/runtime/os_interface/windows/CMakeLists.txt index c12b2d7b62..444c3f82b6 100644 --- a/runtime/os_interface/windows/CMakeLists.txt +++ b/runtime/os_interface/windows/CMakeLists.txt @@ -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 diff --git a/runtime/os_interface/windows/wddm_allocation.cpp b/runtime/os_interface/windows/wddm_allocation.cpp new file mode 100644 index 0000000000..eb00f4f3e3 --- /dev/null +++ b/runtime/os_interface/windows/wddm_allocation.cpp @@ -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 \ No newline at end of file diff --git a/runtime/os_interface/windows/wddm_allocation.h b/runtime/os_interface/windows/wddm_allocation.h index bd4e87a012..6302bb80ed 100644 --- a/runtime/os_interface/windows/wddm_allocation.h +++ b/runtime/os_interface/windows/wddm_allocation.h @@ -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;