Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nitheeshas/bbcb6f1391a431c62926917722411408 to your computer and use it in GitHub Desktop.
Save nitheeshas/bbcb6f1391a431c62926917722411408 to your computer and use it in GitHub Desktop.
# Just a gist of instructions to be followed. NOT an end-to-end guide or a copy-paste-as-script-and-run file
- Activate fglrx from driver manager. If not found, download driver from AMD website.
- If installing from AMD website, do this initially: sudo apt-get install dh-make dh-modaliases execstack libc6-i386 lib32gcc1
- Download AMD APP SDK and install using sudo sh <file>.sh
- Test using clinfo
- This won't link the lib and include files properly if you installed to /opt/ (atleast in my case).
- link the libOpenCL.so to ld's -lOpenCL path
- ld -lOpenCL --verbose : it will give the paths where ld searches for OpenCL library.
- link the libOpenCL.so which can be found in /opt/AMDAPPSDK-<version>/lib/x86_64/sdk/libOpenCL.so to /usr/local/lib, assuming /usr/local/lib is present in the output of step above. Else just use /usr/lib
- link the include folder to /usr/local/include dir(previous assumption is valid for this step too)
- Reboot recommended
- Install Opencv (use pyimagesearch guide)
- Clone viennacl-dev from github
- Building the release version gave error:https://github.com/clMathLibraries/clBLAS/issues/184
- Seems like fix is merged to develop branch
- Develop branch build passed
<using latest drivers from AMD>
- release version build passed
- make install
- clone clBLAS from github
- Build and install
- sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
- sudo apt-get install --no-install-recommends libboost-all-dev
- clone caffe from github
- git checkout opencl
- build passed(using cmake)
- make runtest
- using make, add opencv_imgcodecs along with opencv library names in makefile
- numpy required in global. (apt-get install python-numpy)
- To monitor graphics card usage, use radeontop app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment