P4 to Git Change 1501660 by gandryey@gera-w8 on 2018/01/09 14:04:56
SWDEV-79445 - OCL generic changes and code clean-up - Code style clean-up. No functional changes. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#127 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#164 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#321 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#236 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#412 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#142 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#20 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevicegl.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#42 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#53 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#45 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#69 edit
This commit is contained in:
@@ -1366,7 +1366,7 @@ void VirtualGPU::submitMigrateMemObjects(amd::MigrateMemObjectsCommand& vcmd) {
|
||||
profilingBegin(vcmd, true);
|
||||
|
||||
std::vector<amd::Memory*>::const_iterator itr;
|
||||
for (itr = vcmd.memObjects().begin(); itr != vcmd.memObjects().end(); itr++) {
|
||||
for (itr = vcmd.memObjects().begin(); itr != vcmd.memObjects().end(); ++itr) {
|
||||
// Find device memory
|
||||
gpu::Memory* memory = dev().getGpuMemory(*itr);
|
||||
|
||||
@@ -1395,7 +1395,7 @@ void VirtualGPU::submitSvmFreeMemory(amd::SvmFreeMemoryCommand& vcmd) {
|
||||
std::vector<void*>& svmPointers = vcmd.svmPointers();
|
||||
if (vcmd.pfnFreeFunc() == NULL) {
|
||||
// pointers allocated using clSVMAlloc
|
||||
for (cl_uint i = 0; i < svmPointers.size(); i++) {
|
||||
for (cl_uint i = 0; i < svmPointers.size(); ++i) {
|
||||
dev().svmFree(svmPointers[i]);
|
||||
}
|
||||
} else {
|
||||
@@ -2298,7 +2298,7 @@ void VirtualGPU::submitAcquireExtObjects(amd::AcquireExtObjectsCommand& vcmd) {
|
||||
profilingBegin(vcmd);
|
||||
|
||||
for (std::vector<amd::Memory*>::const_iterator it = vcmd.getMemList().begin();
|
||||
it != vcmd.getMemList().end(); it++) {
|
||||
it != vcmd.getMemList().end(); ++it) {
|
||||
// amd::Memory object should never be NULL
|
||||
assert(*it && "Memory object for interop is NULL");
|
||||
gpu::Memory* memory = dev().getGpuMemory(*it);
|
||||
@@ -2337,7 +2337,7 @@ void VirtualGPU::submitReleaseExtObjects(amd::ReleaseExtObjectsCommand& vcmd) {
|
||||
profilingBegin(vcmd);
|
||||
|
||||
for (std::vector<amd::Memory*>::const_iterator it = vcmd.getMemList().begin();
|
||||
it != vcmd.getMemList().end(); it++) {
|
||||
it != vcmd.getMemList().end(); ++it) {
|
||||
// amd::Memory object should never be NULL
|
||||
assert(*it && "Memory object for interop is NULL");
|
||||
gpu::Memory* memory = dev().getGpuMemory(*it);
|
||||
|
||||
Reference in New Issue
Block a user