Added handling of Intel in choosing best storage types.
PiperOrigin-RevId: 316550810 Change-Id: I7e81cd0df1522be4b705df57a5658397328b5a18
This commit is contained in:
parent
92bd07fee5
commit
176ab11d0a
@ -242,6 +242,8 @@ TensorStorageType GetFastestStorageType(const CLDevice& gpu) {
|
||||
} else if (gpu.IsAMD()) {
|
||||
return gpu.SupportsImageBuffer() ? TensorStorageType::IMAGE_BUFFER
|
||||
: TensorStorageType::BUFFER;
|
||||
} else if (gpu.IsIntel()) {
|
||||
return TensorStorageType::BUFFER;
|
||||
}
|
||||
return TensorStorageType::BUFFER;
|
||||
}
|
||||
@ -264,6 +266,8 @@ TensorStorageType GetStorageTypeWithMinimalMemoryConsumption(
|
||||
} else if (gpu.IsAMD()) {
|
||||
return gpu.SupportsImageBuffer() ? TensorStorageType::IMAGE_BUFFER
|
||||
: TensorStorageType::BUFFER;
|
||||
} else if (gpu.IsIntel()) {
|
||||
return TensorStorageType::BUFFER;
|
||||
}
|
||||
return TensorStorageType::BUFFER;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user