P4 to Git Change 1115252 by skudchad@skudchad_test_win_opencl2 on 2015/01/26 12:25:46
EPR #403782 - IOMMU2/SVM - Detect SVM Fine Grain system in IOL and OpenCL runtime - Changes to convey Allocation attribute to IOL ReviewBoardURL = http://ocltc.amd.com/reviews/r/6685/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#203 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.hpp#78 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuscsi.cpp#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#299 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#89 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/include/cal/cal.h#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/include/cal/calcl.h#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#104 edit
This commit is contained in:
@@ -175,11 +175,8 @@ HSAILKernel::aqlCreateHWInfo(const void* shader, size_t shaderSize)
|
||||
codeSize_ = codeEndAddress - codeStartAddress;
|
||||
code_ = new gpu::Memory(dev(), amd::alignUp(codeSize_, gpu::ConstBuffer::VectorSize));
|
||||
|
||||
// force to use remote memory for HW DEBUG
|
||||
Resource::MemoryType resMemType = (!dev().settings().enableHwDebug_) ? Resource::Local : Resource::RemoteUSWC;
|
||||
|
||||
// Initialize kernel ISA code
|
||||
if ((code_ != NULL) && code_->create(resMemType)) {
|
||||
if ((code_ != NULL) && code_->create(Resource::Shader)) {
|
||||
address cpuCodePtr = static_cast<address>(code_->map(NULL, Resource::WriteOnly));
|
||||
// Copy only amd_kernel_code_t
|
||||
memcpy(cpuCodePtr, codeStartAddress, codeSize_);
|
||||
|
||||
Reference in New Issue
Block a user