Skip to content

Instantly share code, notes, and snippets.

@bkj
Last active July 18, 2017 17:54
Show Gist options
  • Save bkj/c1196db8c720bfe284793f7d92daf821 to your computer and use it in GitHub Desktop.
Save bkj/c1196db8c720bfe284793f7d92daf821 to your computer and use it in GitHub Desktop.
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the CC-by-NC license found in the
# LICENSE file in the root directory of this source tree.
# -*- makefile -*-
#
# Ubuntu 14.04 (eg Docker)
CC=g++
CFLAGS=-fPIC -m64 -Wall -g -O3 -mavx -msse4 -mpopcnt -fopenmp -Wno-sign-compare -std=c++11 -fopenmp
LDFLAGS=-g -fPIC -fopenmp
# common linux flags
SHAREDEXT=so
SHAREDFLAGS=-shared
FAISSSHAREDFLAGS=-shared
BLASCFLAGS=-DFINTEGER=int
BLASLDFLAGS=/usr/lib/libopenblas.so.0 /usr/lib/lapack/liblapack.so.3.0
SWIGEXEC=swig
PYTHONCFLAGS=-I/root/anaconda2/include/python2.7/ -I/root/anaconda2/lib/python2.7/site-packages/numpy/core/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment