-
Notifications
You must be signed in to change notification settings - Fork 3
OpenCL Backend
- clBLAS (development version preferred)
- openblas
git clone https:/lunochod/caffe.git
mkdir -p caffe/build/OpenCL
cd caffe/build/OpenCL
cmake -DBLAS=open -DUSE_OPENCL=ON -DUSE_CLGEMM=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_TIMER=ON -DCMAKE_INSTALL_PREFIX=debug -DclBLAS_INCLUDE_DIR=<path to clBLAS>/include -DclBLAS_LIB=<path to clBLAS>/lib/libclBLAS.so ../../
make -j4
make -j4 test.testbin
make convert_cifar_data
make install
mkdir -p caffe/build/OpenCL
cd caffe/build/OpenCL
cmake -DBLAS=open -DUSE_OPENCL=ON -DUSE_CLGEMM=ON -DCMAKE_BUILD_TYPE=Release -DUSE_TIMER=OFF -DCMAKE_INSTALL_PREFIX=release -DclBLAS_INCLUDE_DIR=<path to clBLAS>/include -DclBLAS_LIB=<path to clBLAS>/lib/libclBLAS.so ../../
make -j4
make -j4 test.testbin
make convert_cifar_data
make install
cd release
./bin/test.testbin
cd debug
./examples/cifar10/create_cifar10.sh
./examples/cifar10/train_quick.sh