Hello, I am new to OpenCL and currently playing around with various math libraries.
I've been trying to build clBLAS and there is no clear explanation in the GitHub (GitHub - clMathLibraries/clBLAS: a software library containing BLAS functions written in OpenCL ).
So I am looking through OpenCL-caffe GitHub instructions, but I don't understand the instructions.
Can someone give me an build instruction for clBLAS?
BTW, I am using Linux.
clBLAS package supports cmake, so you can use cmake to generate makefiles for Linux platform. This page describes the steps to build clBLAS library using cmake: Build clBLAS library *.a or *.so files only · clMathLibraries/clBLAS Wiki · GitHub [at project generator selection step, instead of Visual Studio generator, please select proper generator suitable for makefiles]
If you face any problem to build, please report here: Issues · clMathLibraries/clBLAS · GitHub
Thank you for the reply. I kinda did what the instuctions says, I am using CLI environment so.. after cloning github and did the following at the directory where the files where cloned.
And then it looked like the package is building, however, I can not complie the code that includes clBLAS.h file as the error message says that it can not find the header file.
I am totally lost.
I honestly don't know if the build went right as I can not find any clblas related files (clBLAS.h, libclBLAS.so, etc) in my /usr/include, /bin directories or any library relavent directories in my machine.
But I've tried adding C_INCLUDE_PATH to clBLAS/src directory and it is not working...
1. cloned git from GitHub
$ git clone http://github.com/clMathLibraries/clBLAS
2. I created a directory to build clBLAS and entered the following command under clBLAS/src directory
clBLAS/src ]$ cmake /new/directory/
3. Then at the /new/directory/
/new/directory ]$ cmake
It sounds like you are running cmake from different folder than where source files are placed. You need to set the source folder path accordingly. Also may need to set cmake generator (i.e. option "-G") . Please check the cmake usage for details.