P4 to Git Change 1791677 by vsytchen@vsytchen-remote-ocl-win10 on 2019/06/04 13:42:04

SWDEV-79445 - OCL generic changes and code clean-up

	1. Add a flag to amd::memory::create() to force the allocation on all available devices.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17466/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#137 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#110 edit
This commit is contained in:
foreman
2019-06-04 15:50:38 -04:00
parent 35e5cd5614
commit 322b50e683
2 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -239,7 +239,8 @@ class Memory : public amd::RuntimeObject {
//! Creates and initializes device (cache) memory for all devices
virtual bool create(void* initFrom = NULL, //!< Pointer to the initialization data
bool sysMemAlloc = false, //!< Allocate device memory in system memory
bool skipAlloc = false //!< Skip device memory allocation
bool skipAlloc = false, //!< Skip device memory allocation
bool forceAlloc = false //!< Force device memory allocation
);
//! Allocates device (cache) memory for a specific device