P4 to Git Change 1776019 by gandryey@gera-w8 on 2019/04/29 14:13:29

SWDEV-79445 - OCL generic changes and code clean-up
	- Remove GPU_DEVICE_NAME support

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#605 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#131 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#125 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#305 edit
Este cometimento está contido em:
foreman cometeu 2019-04-29 14:30:36 -04:00
1 ascendente 1e33e8be4d
cometimento 5f99d6ed66
4 ficheiros modificados
+6 -20

Não existem ficheiros que correspondam à sua pesquisa

+2 -5
Ver ficheiro
@@ -560,11 +560,8 @@ bool Device::init() {
}
}
if (!useDeviceList && (flagIsDefault(GPU_DEVICE_NAME) || GPU_DEVICE_NAME == 0
|| GPU_DEVICE_NAME[0] == '\0' || !strcmp(GPU_DEVICE_NAME, roc_device->info_.name_))) {
roc_device.release()->registerDevice();
} else if (useDeviceList && selectedDevices[ordinal++]) {
roc_device.release()->registerDevice();
if (!useDeviceList || selectedDevices[ordinal++]) {
roc_device.release()->registerDevice();
}
}