Sha256: 87be976d4d6c47dcc657c10a751ee9a1e51598b1f9e7a45e2f50052a11d559ae

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 Bytes

Contents

CXX = g++
CXXFLAGS = -Wall -O3 -pthread -std=c++0x -march=native
OMPFLAG = -fopenmp
SHVER = 2

# run `make clean all' if you change the following flags.

# comment the following flag if you want to disable SSE or enable AVX
DFLAG = -DUSESSE

# uncomment the following flags if you want to use AVX
#DFLAG = -DUSEAVX
#CXXFLAGS += -mavx

# uncomment the following flags if you do not want to use OpenMP
DFLAG += -DUSEOMP
CXXFLAGS += $(OMPFLAG)

all: mf-train mf-predict

lib: 
	$(CXX) -shared -Wl,-soname,libmf.so.$(SHVER) -o libmf.so.$(SHVER) mf.o 

mf-train: mf-train.cpp mf.o
	$(CXX) $(CXXFLAGS) $(DFLAG) -o $@ $^

mf-predict: mf-predict.cpp mf.o
	$(CXX) $(CXXFLAGS) $(DFLAG) -o $@ $^

mf.o: mf.cpp mf.h
	$(CXX) $(CXXFLAGS) $(DFLAG) -c -fPIC -o $@ $<

clean:
	rm -f mf-train mf-predict mf.o libmf.so.$(SHVER)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
libmf-0.1.3 vendor/libmf/Makefile
libmf-0.1.2 vendor/libmf/Makefile
libmf-0.1.1 vendor/libmf/Makefile
libmf-0.1.0 vendor/libmf/Makefile