How to compile for ubuntu 14

pull/17/head
mdouze 2017-03-03 10:49:35 +01:00 committed by GitHub
parent c68fa0a35f
commit add4d55f92
1 changed files with 12 additions and 6 deletions

View File

@ -6,11 +6,8 @@
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# -*- makefile -*- # -*- makefile -*-
# tested on CentOS 7 and Ubuntu # tested on CentOS 7, Ubuntu 16 and Ubuntu 14, see below to adjust flags to distribution.
# for Ubuntu:
# sudo apt-get install libopenblas-dev python-numpy
# and change the path to libopenblas from /usr/lib64 to /usr/lib
CC=g++ CC=g++
@ -57,10 +54,19 @@ FAISSSHAREDFLAGS=-shared
# 2. Openblas # 2. Openblas
# #
# The library contains both BLAS and Lapack. About 30% slower than MKL. # The library contains both BLAS and Lapack. About 30% slower than MKL.
#
BLASCFLAGS=-DFINTEGER=int BLASCFLAGS=-DFINTEGER=int
# This is for Centos:
BLASLDFLAGS=/usr/lib64/libopenblas.so.0 BLASLDFLAGS=/usr/lib64/libopenblas.so.0
#
# for Ubuntu 16:
# sudo apt-get install libopenblas-dev python-numpy python-dev
# BLASLDFLAGS=/usr/lib/libopenblas.so.0
# for Ubuntu 14:
# sudo apt-get install libopenblas-dev liblapack3 python-numpy python-dev
# BLASLDFLAGS=/usr/lib/libopenblas.so.0 /usr/lib/lapack/liblapack.so.3.0
# #
# 3. Atlas # 3. Atlas