d1782940f3
This patch adds an option (BUILD_ICD) to toggle the ICD loader build with rocm-opencl. This isn't useful for official ROCm use, but distros or users may want build rocm-opencl with their own OCL ICD loader. The default option is BUILD_ICD=ON. If this option is set to OFF, an OpenCL OCD loader must be installed prior to attempting to build rocm-opencl. E.g. distros already provide ocl icd loader packages: sudo yum install ocd-icd-devel sudo apt-get install ocl-icd-opencl-dev sudo zypper install ocd-icd-devel Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com> Change-Id: I6006593eceed543cd829e8949ec2256482815673