P4 to Git Change 1305360 by lmoriche@lmoriche_opencl_dev on 2016/08/21 17:34:39

SWDEV-94640 - Set the O# level and cl-std from the command args or default settings.
	Select the correct header (CL1.2/C2.0) from the given cl-std.
	Reorder the linked libraries in reverse order of dependency (was failing linking).
	Make the built-in library objects depend on the pre-compiled header.
	Disable the timestamp on the pre-compiled header.
	Disable image support reporting.

Affected files ...

... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/headers/build/Makefile.headers#7 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/irif/build/Makefile.irif#4 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ockl/build/Makefile.ockl#5 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/oclc/build/Makefile.oclc#5 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ocml/build/Makefile.ocml#5 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/opencl/build/Makefile.opencl#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#11 edit


[ROCm/clr commit: 9674e8eb01]
This commit is contained in:
foreman
2016-08-21 17:46:14 -04:00
parent cde3512469
commit e195bb5eea
3 changed files with 61 additions and 30 deletions
@@ -882,6 +882,9 @@ Device::populateOCLDeviceConstants()
assert(HSA_EXTENSION_IMAGES < 8);
const bool image_is_supported =
#if defined(WITH_LIGHTNING_COMPILER)
false && // FIXME_lmoriche: Enable this when the LC is ready.
#endif // defined(WITH_LIGHTNING_COMPILER)
((hsa_extensions[0] & (1 << HSA_EXTENSION_IMAGES)) != 0);
if (image_is_supported) {
// Images