Intel-Media-SDK / MediaSDK

The Intel® Media SDK
MIT License
929 stars 457 forks source link

FindOpenCL.cmake will not find the right intel opencl driver #98

Closed liyuming1978 closed 4 years ago

liyuming1978 commented 6 years ago

I change the cmake to

find_path( OPENCL_INCLUDE CL/opencl.h PATHS /opt/intel/opencl/include /usr/include NO_DEFAULT_PATH) find_library( OPENCL_LIBRARY libOpenCL.so PATHS /opt/intel/opencl/ /usr/lib NO_DEFAULT_PATH)

it's ok now. since opencl.h and libopencl.so also exist in /usr folder

adydychk commented 6 years ago

@liyuming1978 Is your problem still relevant? We have some documentation how to install it here:

sudo yum install libpciaccess libpciaccess-devel opencl-headers

#Enable epel repository
sudo yum install gtest gtest-devel ocl-icd ocl-icd-devel

#Compile OpenCL from these cources: https://github.com/intel/compute-runtime/releases/tag/2018ww18-010782
#By using these instructions: https://github.com/intel/compute-runtime/blob/master/documentation/BUILD_Centos.md
sudo rpm -ihv intel-opencl-1.0-0.x86_64-igdrcl.rpm
liyuming1978 commented 6 years ago

fix it with NO_DEFAULT_PATH

adydychk commented 6 years ago

Issue will be tested. Thanks for suggestion

ekislyuk commented 4 years ago

No interest from customer for more than a year - closing for now. In case of facing any new issues-feeel free to open new issue against most fresh release