P4 to Git Change 1077444 by gandryey@gera-dev-w7 on 2014/09/16 14:31:35

ECR #304775 - Add capability to enable large allocations >4GB
	- Update the blit kernels to consider a buffer size >4GB

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/blitcl.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#110 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#280 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa/hsablit.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#214 edit
This commit is contained in:
foreman
2014-09-16 14:43:17 -04:00
parent ff7ab4a0b2
commit b672b6c4da
5 changed files with 145 additions and 147 deletions
+6 -1
View File
@@ -320,7 +320,12 @@ Settings::create(
supportDepthsRGB_ = true;
}
if (use64BitPtr_) {
maxAllocSize_ = 4048 * Mi;
if (GPU_ENABLE_LARGE_ALLOCATION) {
maxAllocSize_ = 16ULL * Gi;
}
else {
maxAllocSize_ = 4048 * Mi;
}
}
else {
maxAllocSize_ = 3ULL * Gi;