P4 to Git Change 1559383 by gandryey@gera-w8 on 2018/05/24 18:38:36
SWDEV-79445 - OCL generic changes and code clean-up - Remove memory reallocation interfaces. It was used for AMDIL path with HW constant buffers support. It seems AMDIL with SI+ doesn't enable HW const buffers. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#303 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#589 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#166 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#324 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.hpp#129 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#132 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.hpp#52 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#90 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#29 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#51 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#21 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.hpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#29 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#105 edit
Этот коммит содержится в:
@@ -2642,13 +2642,6 @@ bool NullKernel::parseArguments(const std::string& metaData, uint* uavRefCount)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Kernel::validateMemory(uint idx, amd::Memory* amdMem) const {
|
||||
// Check if memory doesn't require reallocation
|
||||
bool noRealloc = (!argument(idx)->memory_.realloc_ || amdMem->reallocedDeviceMemory(&dev()));
|
||||
|
||||
return noRealloc;
|
||||
}
|
||||
|
||||
inline static HSAIL_ARG_TYPE GetHSAILArgType(const aclArgData* argInfo) {
|
||||
switch (argInfo->type) {
|
||||
case ARG_TYPE_POINTER:
|
||||
@@ -3314,14 +3307,6 @@ bool HSAILKernel::init(amd::hsa::loader::Symbol* sym, bool finalize) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool HSAILKernel::validateMemory(uint idx, amd::Memory* amdMem) const {
|
||||
// Check if memory doesn't require reallocation
|
||||
bool noRealloc = true;
|
||||
// amdMem->reallocedDeviceMemory(&dev()));
|
||||
|
||||
return noRealloc;
|
||||
}
|
||||
|
||||
const Device& HSAILKernel::dev() const { return reinterpret_cast<const Device&>(dev_); }
|
||||
|
||||
const HSAILProgram& HSAILKernel::prog() const {
|
||||
|
||||
Ссылка в новой задаче
Block a user