This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d9c849
commit 740103e
Showing
11 changed files
with
676 additions
and
1,584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.