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
4d440b66
Commit
4d440b66
authored
Feb 28, 2018
by
matthijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Makefile flags
parent
a280791c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
9 deletions
+7
-9
Makefile
Makefile
+2
-2
makefile.inc.Linux
example_makefiles/makefile.inc.Linux
+1
-3
makefile.inc.Mac.brew
example_makefiles/makefile.inc.Mac.brew
+1
-1
makefile.inc.Mac.port
example_makefiles/makefile.inc.Mac.port
+1
-1
Makefile
gpu/Makefile
+2
-2
No files found.
Makefile
View file @
4d440b66
...
...
@@ -63,10 +63,10 @@ tests/test_blas: tests/test_blas.cpp
$(CXX)
$(CXXFLAGS)
$<
-o
$@
$(LDFLAGS)
$(BLASLDFLAGS)
$(BLASCFLAGS)
demos/demo_ivfpq_indexing
:
demos/demo_ivfpq_indexing.cpp $(LIBNAME).a
$(CXX)
-o
$@
$(CFLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
$(CXX)
-o
$@
$(C
XX
FLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
demos/demo_sift1M
:
demos/demo_sift1M.cpp $(LIBNAME).a
$(CXX)
-o
$@
$(CFLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
$(CXX)
-o
$@
$(C
XX
FLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
#############################
...
...
example_makefiles/makefile.inc.Linux
View file @
4d440b66
...
...
@@ -125,8 +125,6 @@ PYTHONCFLAGS=-I/usr/include/python2.7/ -I/usr/lib64/python2.7/site-packages/nump
###########################################################################
# a C++ compiler that supports c++11
CXX11
=
g++
# root of the cuda 8 installation
CUDAROOT
=
/usr/local/cuda-8.0/
...
...
@@ -143,7 +141,7 @@ NVCCFLAGS= $(CUDAFLAGS) \
-gencode
arch
=
compute_52,code
=
"compute_52"
\
-gencode
arch
=
compute_60,code
=
"compute_60"
\
--std
c++11
-lineinfo
\
-ccbin
$(CXX
11
)
-DFAISS_USE_FLOAT16
-ccbin
$(CXX)
-DFAISS_USE_FLOAT16
# BLAS LD flags for nvcc (used to generate an executable)
# if BLASLDFLAGS contains several flags, each one may
...
...
example_makefiles/makefile.inc.Mac.brew
View file @
4d440b66
...
...
@@ -3,7 +3,7 @@
# Tested on macOS Sierra (10.12.2) with llvm installed using Homebrew (https://brew.sh)
# brew install llvm
C
C
=
/usr/local/opt/llvm/bin/clang++
C
XX
=
/usr/local/opt/llvm/bin/clang++
CFLAGS
=
-fPIC
-m64
-Wall
-g
-O3
-msse4
-mpopcnt
-fopenmp
-Wno-sign-compare
-I
/usr/local/opt/llvm/include
CXXFLAGS
=
$(CFLAGS)
-std
=
c++11
LLVM_VERSION_PATH
=
$(
shell
ls
-rt
/usr/local/Cellar/llvm/ |
tail
-n1
)
...
...
example_makefiles/makefile.inc.Mac.port
View file @
4d440b66
...
...
@@ -7,7 +7,7 @@
# The system default clang does not support openmp
# You can install an openmp compatible g++ with macports:
# port install g++-mp-6
C
C
=
/opt/local/bin/g++-mp-6
C
XX
=
/opt/local/bin/g++-mp-6
CFLAGS
=
-fPIC
-m64
-Wall
-g
-O3
-msse4
-mpopcnt
-fopenmp
-Wno-sign-compare
CXXFLAGS
=
$(CFLAGS)
-std
=
c++11
...
...
gpu/Makefile
View file @
4d440b66
...
...
@@ -74,7 +74,7 @@ CUOBJ= impl/BroadcastSum.o \
.cpp.o
:
$(CXX
11
)
$(CXXFLAGS)
-fPIC
-m64
-Wall
-g
-Wno-sign-compare
-O3
-fopenmp
\
$(CXX)
$(CXXFLAGS)
-fPIC
-m64
-Wall
-g
-Wno-sign-compare
-O3
-fopenmp
\
-c
$<
-o
$@
$(EXTRAFLAGS)
$(CUDACFLAGS)
.cu.o
:
...
...
@@ -86,7 +86,7 @@ $(LIBNAME).a: $(CPPOBJ) $(CUOBJ)
ar r
$@
$^
$(LIBNAME).$(SHAREDEXT)
:
$(CPPOBJ) $(CUOBJ)
$(C
C
)
-L
$(CUDAROOT)
/lib64
-lcublas
-lcudart
$(LDFLAGS)
\
$(C
XX
)
-L
$(CUDAROOT)
/lib64
-lcublas
-lcudart
$(LDFLAGS)
\
$(FAISSSHAREDFLAGS)
-o
$(LIBNAME)
.
$(SHAREDEXT)
$^
...
...
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