P4 to Git Change 1727393 by gandryey@gera-w8 on 2019/01/08 11:35:08
SWDEV-79445 - OCL generic changes and code clean-up
- Allow LC to execute 64bit GPU binaries with 32 bit OCL runtime.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#122 edit
[ROCm/clr commit: 697a5c68ca]
This commit is contained in:
@@ -469,7 +469,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
|
||||
if (settings().use64BitPtr_) {
|
||||
info_.addressBits_ = 64;
|
||||
} else {
|
||||
info_.addressBits_ = 32;
|
||||
info_.addressBits_ = (settings().useLightning_) ? 64 : 32;
|
||||
// Limit total size with 3GB for 32 bit
|
||||
info_.globalMemSize_ = std::min(info_.globalMemSize_, cl_ulong(3 * Gi));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user