P4 to Git Change 1789157 by vsytchen@vsytchen-remote-ocl-win10 on 2019/05/29 16:23:11

SWDEV-185452 - Offline compilation failing on a VM, producing error CL_PLATFORM_NOT_FOUND_KHR

	1. Don't load a platform if there are no devices available for it. If there is no platform that has visible devices, only allow the PAL platform to load.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17419/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#309 edit
This commit is contained in:
foreman
2019-05-29 17:27:48 -04:00
förälder a4eaa79df8
incheckning 1d802b0413
2 ändrade filer med 9 tillägg och 0 borttagningar
+7
Visa fil
@@ -66,6 +66,13 @@ namespace amd {
#endif // __APPLE__
bool IS_HIP = false;
#if defined(WITH_GPU_DEVICE)
bool IS_LEGACY = true;
#else
bool IS_LEGACY = false;
#endif
// static
char* Flag::envstr_;
+2
Visa fil
@@ -188,6 +188,8 @@ namespace amd {
extern bool IS_HIP;
extern bool IS_LEGACY;
//! \addtogroup Utils
// @{