Currently, this will only work when running from pycaffe (but not the
tool binary), due to static linking conflicts with registration.
COMMON_FLAGS += -DCPU_ONLY
endif
COMMON_FLAGS += -DCPU_ONLY
endif
+# Python layer support
+ifeq ($(WITH_PYTHON_LAYER), 1)
+ COMMON_FLAGS += -DWITH_PYTHON_LAYER
+ LIBRARIES += $(PYTHON_LIBRARIES)
+endif
+
# BLAS configuration (default = ATLAS)
BLAS ?= atlas
ifeq ($(BLAS), mkl)
# BLAS configuration (default = ATLAS)
BLAS ?= atlas
ifeq ($(BLAS), mkl)
PYTHON_LIB := /usr/lib
# PYTHON_LIB := $(ANACONDA_HOME)/lib
PYTHON_LIB := /usr/lib
# PYTHON_LIB := $(ANACONDA_HOME)/lib
+# Uncomment to support layers written in Python (will link against Python libs)
+# WITH_PYTHON_LAYER := 1
+
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib