P4 to Git Change 1826060 by gandryey@gera-hip-lnx on 2019/06/13 15:40:00
SWDEV-184708 - Support hipGetDeviceProperties() - Enable coop launch properties for gfx9+ by default - GPU_ENABLE_COOP_GROUPS controls the feature Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#339 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#143 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#84 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#128 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#44 edit
Bu işleme şunda yer alıyor:
@@ -223,6 +223,8 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
case Pal::AsicRevision::Raven:
|
||||
case Pal::AsicRevision::Raven2:
|
||||
aiPlus_ = true;
|
||||
enableCoopGroups_ = true;
|
||||
enableCoopMultiDeviceGroups_ = true;
|
||||
// Fall through to VI ...
|
||||
case Pal::AsicRevision::Carrizo:
|
||||
case Pal::AsicRevision::Bristol:
|
||||
@@ -540,6 +542,11 @@ void Settings::override() {
|
||||
if (!flagIsDefault(GPU_MAX_COMMAND_BUFFERS)) {
|
||||
maxCmdBuffers_ = GPU_MAX_COMMAND_BUFFERS;
|
||||
}
|
||||
|
||||
if (!flagIsDefault(GPU_ENABLE_COOP_GROUPS)) {
|
||||
enableCoopGroups_ = GPU_ENABLE_COOP_GROUPS;
|
||||
enableCoopMultiDeviceGroups_ = GPU_ENABLE_COOP_GROUPS;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace pal
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle