caffe Getting started with caffe Enable multithreading with Caffe


Example

Caffe can run on multiple cores. One way is to enable multithreading with Caffe to use OpenBLAS instead of the default ATLAS. To do so, you can follow these three steps:

  1. sudo apt-get install -y libopenblas-dev
  2. Before compiling Caffe, edit Makefile.config, replace BLAS := atlas by BLAS := open
  3. After compiling Caffe, running export OPENBLAS_NUM_THREADS=4 will cause Caffe to use 4 cores.