Comments (4)
src/FindOpenCL.cmake CMake script is used to find OpenCL. It looks for the cl.h header and greps it for CL_VERSION_1_1, CL_VERSION_1_2, CL_VERSION_2_0. This points him to OpenCL version supportred by header. On my system I have the following code in cl.h for example:
195 #define CL_VERSION_1_0 1
196 #define CL_VERSION_1_1 1
197 #define CL_VERSION_1_2 1
198 #define CL_VERSION_2_0 1
You can try to set set( OpenCL_VERSION "0.0" )
line to set( OpenCL_VERSION "1.2" )
if you are sure. Or better check what particular cl.h header is found and what CL_VERSION_X_X are defined in it.
from clblas.
Thanks for the response. I do have cl.h header on my system. How does it know where to look for cl.h, is it guided by some environment variable? I wonder if I just need to configure or fix some environment variable and then it will work.
By the way, what OpenCL package/distribution do you test against?
Thanks!
don@donfpga2:~$ cat /opt/intel/opencl-1.2-6.4.0.25/SDK/include/CL/cl.h|grep CL_VERSION
#define CL_VERSION_1_0 1
#define CL_VERSION_1_1 1
#define CL_VERSION_1_2 1
from clblas.
You can check OPENCL_INCLUDE_DIRS
variable in your CMakeCache.txt. If it is not /opt/intel/opencl-1.2-6.4.0.25/SDK/include
you can try pointing clBLAS to it by using OPENCL_ROOT
CMake variable like this:
cmake ../src/ -DOPENCL_ROOT=/opt/intel/opencl-1.2-6.4.0.25/SDK
And yes, it also checks environment variables OPENCL_ROOT
, AMDAPPSDKROOT
and CUDA_PATH
.
Newer versions of FindOpenCL.cmake script found in CMake distribution look at INTELOCLSDKROOT
variable too but it doesn't matter really since every vendor supports ICD in their implementation. Headers are almost the same in all SDK's and there is no difference what libOpenCL.so to link with. I personally use headers from opencl-headers package which are in /usr/include/CL
.
from clblas.
Thanks! Settings the OPENCL_ROOT environment variable (and cleaning up the files in the build directory from my previous failed attempts) allowed the build to complete.
from clblas.
Related Issues (20)
- test-correctness segfault and "INTERNAL BUILD FAILURE"
- Does this clBLAS support FPGA? HOT 3
- Will it run on OpenCL 1.1 ( EP) on Vivante GC2000 GPU? HOT 3
- Problems building with gtest-1.8.1 HOT 1
- Runtime error with Intel OpenCL 18.1.0.0920
- What is APPML 1.12 and where is it?
- clBLAS test fail with ROCm on Centos 7.6 HOT 1
- clBLAS aborts when backend is OpenCL 1.1
- Outdated documentation? HOT 1
- bug in clblasiCamax???
- Build clBLAS without OpenBLAS? HOT 5
- how about the performance on adreno gpu HOT 1
- test-short failure on gfx1010 (RX5700 XT)
- CMake compilation with clBLAS fails on hard-coded AMDADDPSDK path HOT 1
- Installation procedure went wrong? HOT 1
- add error checker when creating cmd queue in client: especially when OoO queue is not supported on many devices HOT 1
- undefined clblassetup HOT 7
- Test cases that can be displayed in an image interface HOT 1
- Correctness test fails to compile on m2 Mac HOT 1
- Is it a good idea to use GCN cross lane instruction for optimization? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clblas.