P4 to Git Change 1524674 by gandryey@gera-w8 on 2018/03/08 17:26:08

SWDEV-79445 - OCL generic changes and code clean-up
	- Remove pinOffset_ field, since the pinning offset can be combined with global offset_ field

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#44 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#16 edit
Bu işleme şunda yer alıyor:
foreman
2018-03-08 17:37:53 -05:00
ebeveyn 3c0e80074b
işleme 953d3c86e0
4 değiştirilmiş dosya ile 41 ekleme ve 116 silme
+3 -6
Dosyayı Görüntüle
@@ -749,11 +749,8 @@ bool HSAILKernel::init(amd::hsa::loader::Symbol* sym, bool finalize) {
}
bool HSAILKernel::validateMemory(uint idx, amd::Memory* amdMem) const {
// Check if memory doesn't require reallocation
bool noRealloc = true;
// amdMem->reallocedDeviceMemory(&dev()));
return noRealloc;
// HSAIL path doesn't require memory reallocations
return true;
}
const Device& HSAILKernel::dev() const { return reinterpret_cast<const Device&>(dev_); }
@@ -1026,7 +1023,7 @@ hsa_kernel_dispatch_packet_t* HSAILKernel::loadArguments(
}
//! 64 bit isn't supported with 32 bit binary
uint64_t globalAddress = gpuMem->vmAddress() + gpuMem->pinOffset();
uint64_t globalAddress = gpuMem->vmAddress();
WriteAqlArg(&aqlArgBuf, &globalAddress, arg->size_, arg->alignment_);
// Wait for resource if it was used on an inactive engine