P4 to Git Change 1211287 by xcui@merged_opencl_jxcwin on 2015/11/13 19:19:52
SWDEV-77172 - temporary disable the FGS optimization for a failure on stg. code review: http://ocltc.amd.com/reviews/r/8992/ precheckin: http://ocltc.amd.com:8111/viewModification.html?modId=62238&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#263 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#537 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#156 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#310 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#391 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#37 edit
Этот коммит содержится в:
1 родитель
8a7bac7048
Коммит
768a8e7e78
6 files changed
+7
-10
No files matched your search
@@ -2254,10 +2254,8 @@ Device::svmAlloc(amd::Context& context, size_t size, size_t alignment, cl_svm_me
|
||||
|
||||
size = amd::alignUp(size, alignment);
|
||||
amd::Memory* mem = NULL;
|
||||
freeCPUMem_ = false;
|
||||
if (NULL == svmPtr) {
|
||||
if (isFineGrainedSystem()) {
|
||||
freeCPUMem_ = true;
|
||||
return amd::Os::alignedMalloc(size, alignment);
|
||||
}
|
||||
|
||||
@@ -2301,7 +2299,7 @@ Device::svmAlloc(amd::Context& context, size_t size, size_t alignment, cl_svm_me
|
||||
void
|
||||
Device::svmFree(void *ptr) const
|
||||
{
|
||||
if (freeCPUMem_) {
|
||||
if (isFineGrainedSystem()) {
|
||||
amd::Os::alignedFree(ptr);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user