Move source code to faiss/ subdirectory. (#1312)

* Move source code to faiss/ subdirectory.

* Remove stale files.
pull/1317/head
Lucas Hosseini 2020-08-04 17:16:58 +02:00 committed by GitHub
parent cd38e82f0c
commit 750d43f7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
311 changed files with 22 additions and 353 deletions

View File

@ -97,7 +97,7 @@ install:
- autoconf
- ./configure --without-cuda
- make
- make -C python
- make -C faiss/python
script:
- make test

View File

@ -5,15 +5,18 @@
-include makefile.inc
HEADERS = $(wildcard *.h impl/*.h utils/*.h)
SRC = $(wildcard *.cpp impl/*.cpp utils/*.cpp)
HEADERS = $(wildcard faiss/*.h faiss/impl/*.h faiss/utils/*.h)
SRC = $(wildcard faiss/*.cpp faiss/impl/*.cpp faiss/utils/*.cpp)
OBJ = $(SRC:.cpp=.o)
INSTALLDIRS = $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)/faiss
GPU_HEADERS = $(wildcard gpu/*.h gpu/impl/*.h gpu/impl/*.cuh gpu/utils/*.h gpu/utils/*.cuh)
GPU_CPPSRC = $(wildcard gpu/*.cpp gpu/impl/*.cpp gpu/utils/*.cpp)
GPU_CUSRC = $(wildcard gpu/*.cu gpu/impl/*.cu gpu/utils/*.cu \
gpu/utils/nvidia/*.cu gpu/utils/blockselect/*.cu gpu/utils/warpselect/*.cu)
GPU_HEADERS = $(wildcard faiss/gpu/*.h faiss/gpu/impl/*.h faiss/gpu/impl/*.cuh \
faiss/gpu/utils/*.h faiss/gpu/utils/*.cuh)
GPU_CPPSRC = $(wildcard faiss/gpu/*.cpp faiss/gpu/impl/*.cpp \
faiss/gpu/utils/*.cpp)
GPU_CUSRC = $(wildcard faiss/gpu/*.cu faiss/gpu/impl/*.cu \
faiss/gpu/utils/*.cu faiss/gpu/utils/nvidia/*.cu \
faiss/gpu/utils/blockselect/*.cu faiss/gpu/utils/warpselect/*.cu)
GPU_SRC = $(GPU_CPPSRC) $(GPU_CUSRC)
GPU_CPPOBJ = $(GPU_CPPSRC:.cpp=.o)
GPU_CUOBJ = $(GPU_CUSRC:.cu=.o)
@ -80,7 +83,7 @@ depend: $(SRC) $(GPU_SRC)
# Python
py: libfaiss.a
$(MAKE) -C python
$(MAKE) -C faiss/python
#############################
@ -88,12 +91,12 @@ py: libfaiss.a
test: libfaiss.a py
$(MAKE) -C tests run
PYTHONPATH=./python/build/`ls python/build | grep lib` \
PYTHONPATH=./faiss/python/build/`ls faiss/python/build | grep lib` \
$(PYTHON) -m unittest discover tests/ -v
test_gpu: libfaiss.a
$(MAKE) -C gpu/test run
PYTHONPATH=./python/build/`ls python/build | grep lib` \
PYTHONPATH=./faiss/python/build/`ls faiss/python/build | grep lib` \
$(PYTHON) -m unittest discover gpu/test/ -v
#############################

2
configure vendored
View File

@ -587,7 +587,7 @@ PACKAGE_STRING='faiss 1.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
ac_unique_file="Index.h"
ac_unique_file="faiss/Index.h"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>

View File

@ -7,7 +7,7 @@ AC_COPYRIGHT([Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.])
AC_CONFIG_SRCDIR([Index.h])
AC_CONFIG_SRCDIR([faiss/Index.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([acinclude])

1
faiss
View File

@ -1 +0,0 @@
./

Some files were not shown because too many files have changed in this diff Show More