-
Notifications
You must be signed in to change notification settings - Fork 147
How to set up clBLAS and OpenCL
#install OpenCL driver Visit AMD official website and download the package for your hardware and system. The website provides manual selection process of driver by providing information of your system. http://support.amd.com/en-us/download
#install OpenCL APPSDK Visit AMD official website and download the package for your system (linux 32-bit or 64-bit system). http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/#appsdkdownloads
#install clBLAS The latest library can be found in https://github.com/clMathLibraries/clBLAS. First follow the wiki page of clBLAS https://github.com/clMathLibraries/clBLAS/wiki to install all the dependencies
If you have Hawaii, Bonaire or Tahiti device, to get optimal performance, please read the off-line compilation section (clBLAS update notes 04/2015 in README.md ) carefully and do as the instructions told you. Taking Hawaii GPUs for example, you may install clBLAS like this
-
cd src & mkdir build & cd build
-
cmake -DOCL_OFFLINE_BUILD_HAWAII_KERNEL:BOOL=ON -DCMAKE_INSTALL_PATH:PATH=/opt/clBLAS2.x -DOCL_VERSION:STRING=2.0 ..
If some dependencies are not installed properly, you will get some errors in the cmake output such as libacml.so not found, in this case, just set the environment variable like "export ACML_ROOT=/opt/acml5.3.1". Fix all the dependency problem until there is no complaint.
3.sudo make
4.sudo make install