SWDEV-310181 - Fix for AtoH Memcpy tests failure

Change-Id: Ibf8c8c01257f0516088d50d5c9f82040ed8fa067
This commit is contained in:
Sarbojit Sarkar
2021-11-25 06:16:16 +00:00
committed by Sarbojit Sarkar
parent d4ad981c0c
commit 02dc6f9f9a
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -294,6 +294,9 @@ class Memory : public amd::RuntimeObject {
bool alloc = true //!< Allocates memory
);
//! Get origianl device memory
device::Memory* getOriginalDeviceMemory() const { return deviceMemories_[0].value_; };
//! Allocate host memory (as required)
bool allocHostMemory(void* initFrom, //!< Host memory provided by the application
bool allocHostMem, //!< Force system memory allocation