P4 to Git Change 1552021 by gandryey@gera-w8 on 2018/05/08 15:00:13
SWDEV-151981 - Removal of CPU support on Windows - Part 5. Remove runtime logic that considered CPU device support. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#33 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#47 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#83 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#50 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#130 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#92 edit
Este cometimento está contido em:
@@ -156,14 +156,6 @@ bool Memory::allocHostMemory(void* initFrom, bool allocHostMem, bool forceCopy)
|
||||
|
||||
const std::vector<Device*>& devices = context_().devices();
|
||||
|
||||
// Find if a non GPU device was created with the context
|
||||
for (size_t i = 0; i < devices.size(); i++) {
|
||||
if (!(devices[i]->info().type_ & CL_DEVICE_TYPE_GPU)) {
|
||||
allocHostMem = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// This allocation is necessary to use coherency mechanism
|
||||
// for the initialization
|
||||
if (getMemFlags() & (CL_MEM_COPY_HOST_PTR | CL_MEM_ALLOC_HOST_PTR)) {
|
||||
@@ -243,11 +235,8 @@ bool Memory::create(void* initFrom, bool sysMemAlloc) {
|
||||
for (size_t i = 0; i < devices.size(); i++) {
|
||||
deviceAlloced_[devices[i]] = AllocInit;
|
||||
|
||||
// Only GPU devices have device memory objects
|
||||
if (devices[i]->info().type_ & CL_DEVICE_TYPE_GPU) {
|
||||
deviceMemories_[i].ref_ = devices[i];
|
||||
deviceMemories_[i].value_ = NULL;
|
||||
}
|
||||
deviceMemories_[i].ref_ = devices[i];
|
||||
deviceMemories_[i].value_ = NULL;
|
||||
|
||||
if (DISABLE_DEFERRED_ALLOC) {
|
||||
device::Memory* mem = getDeviceMemory(*devices[i]);
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador