Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
faiss
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
faiss
Commits
add4d55f
Commit
add4d55f
authored
Mar 03, 2017
by
mdouze
Committed by
GitHub
Mar 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
How to compile for ubuntu 14
parent
c68fa0a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
makefile.inc.Linux
example_makefiles/makefile.inc.Linux
+12
-6
No files found.
example_makefiles/makefile.inc.Linux
View file @
add4d55f
...
@@ -6,11 +6,8 @@
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment