Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
restruct
Browse files Browse the repository at this point in the history
  • Loading branch information
guestwalk-crto authored and ycjuan committed May 28, 2017
1 parent 1d9c849 commit 740103e
Show file tree
Hide file tree
Showing 11 changed files with 676 additions and 1,584 deletions.
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Copyright (c) 2015 The LIBFFM Project.
Copyright (c) 2017 The LIBFFM Project.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
CXX = g++
CXXFLAGS = -Wall -O3 -std=c++0x -march=native

# comment the following flags if you do not want to SSE instructions
DFLAG += -DUSESSE

# comment the following flags if you do not want to use OpenMP
DFLAG += -DUSEOMP
CXXFLAGS += -fopenmp

all: ffm-train ffm-predict

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

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

ffm-predict: ffm-predict.cpp ffm.o
$(CXX) $(CXXFLAGS) -o $@ $^
ffm.o: ffm.cpp ffm.h timer.o
$(CXX) $(CXXFLAGS) $(DFLAG) -c -o $@ $<

ffm.o: ffm.cpp ffm.h
timer.o: timer.cpp timer.h
$(CXX) $(CXXFLAGS) $(DFLAG) -c -o $@ $<

clean:
rm -f ffm-train ffm-predict ffm.o
rm -f ffm-train ffm-predict ffm.o timer.o
Loading

0 comments on commit 740103e

Please sign in to comment.