Add interface to get local memory size

Related-To: NEO-2687

Change-Id: I8d9913e925f88de34d71da9371d25ec04d2e02d5
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2019-07-25 23:25:10 +02:00
committed by sys_ocldev
parent 169ec2b21a
commit 4198e8f24f
12 changed files with 58 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ class WddmMemoryManager : public MemoryManager {
void obtainGpuAddressFromFragments(WddmAllocation *allocation, OsHandleStorage &handleStorage);
uint64_t getSystemSharedMemory() override;
uint64_t getLocalMemorySize() override;
bool tryDeferDeletions(const D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle);

View File

@@ -5,6 +5,7 @@
*
*/
#include "core/helpers/basic_math.h"
#include "runtime/os_interface/windows/wddm_memory_manager.h"
namespace NEO {
@@ -18,4 +19,7 @@ bool WddmMemoryManager::copyMemoryToAllocation(GraphicsAllocation *graphicsAlloc
bool WddmMemoryManager::mapGpuVirtualAddress(WddmAllocation *allocation, const void *requiredPtr) {
return mapGpuVaForOneHandleAllocation(allocation, requiredPtr);
}
uint64_t WddmMemoryManager::getLocalMemorySize() {
return 0 * GB;
}
} // namespace NEO