P4 to Git Change 1294145 by gandryey@gera-w8 on 2016/07/21 17:55:27

SWDEV-95007 - OpenCL on PAL (Windows)
	- Enable PAL backend compilation by default
	- Add GPU_ENABLE_PAL to control PAL backend

Affected files ...

... //depot/stg/opencl/drivers/opencl/opencldefs#173 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#198 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#255 edit
이 커밋은 다음에 포함됨:
foreman가 2016-07-21 18:22:08 -04:00를 커밋했습니다
1 부모 1095516dca
커밋 93b6223470
2 파일이 변경됨
+16 -6

검색과 일치하는 파일 없음

+14 -6
파일 보기
@@ -184,11 +184,15 @@ Device::init()
ret |= roc::NullDevice::init();
}
#endif // WITH_HSA_DEVICE
#if defined(WITH_GPU_DEVICE) && !defined(WITH_PAL_DEVICE)
ret |= DeviceLoad();
#if defined(WITH_GPU_DEVICE)
if (GPU_ENABLE_PAL != 1) {
ret |= DeviceLoad();
}
#endif // WITH_GPU_DEVICE
#if defined(WITH_PAL_DEVICE)
ret |= PalDeviceLoad();
if (GPU_ENABLE_PAL != 0) {
ret |= PalDeviceLoad();
}
#endif // WITH_PAL_DEVICE
#if defined(WITH_CPU_DEVICE)
ret |= cpu::Device::init();
@@ -213,11 +217,15 @@ Device::tearDown()
rocAppProfile_ = NULL;
}
#endif // WITH_HSA_DEVICE
#if defined(WITH_GPU_DEVICE) && !defined(WITH_PAL_DEVICE)
DeviceUnload();
#if defined(WITH_GPU_DEVICE)
if (GPU_ENABLE_PAL != 1) {
DeviceUnload();
}
#endif // WITH_GPU_DEVICE
#if defined(WITH_PAL_DEVICE)
PalDeviceUnload();
if (GPU_ENABLE_PAL != 0) {
PalDeviceUnload();
}
#endif // WITH_PAL_DEVICE
#if defined(WITH_CPU_DEVICE)
cpu::Device::tearDown();