Remove OpenCL Single Buffer Allocation Restriction

Change-Id: I5c37a7f08b02ed74ec6984c6da9ffa5dc9bf0f52


[ROCm/clr commit: 019d1feea5]
Dieser Commit ist enthalten in:
Vladislav Sytchenko verfasst und Vladislav Sytchenko committed 2020-02-25 11:41:18 -05:00
1 Ursprung e3786cc01c
Commit 2b134b6f30
2 Dateien geändert
+2 -2

Keine Dateien entsprechen Ihrer Suche

+1 -1
Datei anzeigen
@@ -294,7 +294,7 @@ bool Settings::create(const CALdeviceattribs& calAttr, bool reportAsOCL12Device,
supportDepthsRGB_ = true;
}
if (use64BitPtr_) {
if ((GPU_ENABLE_LARGE_ALLOCATION) && (calAttr.isWorkstation) && (oclVersion_ == OpenCL20)) {
if ((GPU_ENABLE_LARGE_ALLOCATION) && (oclVersion_ == OpenCL20)) {
maxAllocSize_ = 64ULL * Gi;
} else {
maxAllocSize_ = 4048 * Mi;
+1 -1
Datei anzeigen
@@ -332,7 +332,7 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
supportDepthsRGB_ = true;
}
if (use64BitPtr_) {
if (amd::IS_HIP || (GPU_ENABLE_LARGE_ALLOCATION && wscaps.workStationBoard)) {
if (GPU_ENABLE_LARGE_ALLOCATION) {
maxAllocSize_ = 64ULL * Gi;
} else {
maxAllocSize_ = 4048 * Mi;