Commits

opticall committed 7d72336

added compiler optimization flag -O3 to Makefile, significant speed increase

Comments (0)

Files changed (1)

opticall/Makefile

 opticall: opticall.o filtering.o kmpp/KMeans.o kmpp/KmTree.o kmpp/KmUtils.o 
-	g++ -m64 -o opticall opticall.o filtering.o kmpp/KMeans.o kmpp/KmTree.o kmpp/KmUtils.o
+	g++ -m64 -o opticall opticall.o filtering.o kmpp/KMeans.o kmpp/KmTree.o kmpp/KmUtils.o -O3
 	rm *.o
 	rm kmpp/*.o
 
 opticall.o: opticall.cpp inclusions.h filtering.h
-	g++ -m64 -I libs -I libs/eigen -c opticall.cpp	
+	g++ -m64 -I libs -I libs/eigen -c opticall.cpp -O3
 
 
 filtering.o: filtering.cpp inclusions.h
-	g++ -m64 -I libs -I libs/eigen -c filtering.cpp
+	g++ -m64 -I libs -I libs/eigen -c filtering.cpp -O3
 
 
 kmpp/KMeans.o: kmpp/KMeans.cpp kmpp/KMeans.h kmpp/KmTree.h
-	g++ -m64 -c kmpp/KMeans.cpp -o kmpp/KMeans.o
+	g++ -m64 -c kmpp/KMeans.cpp -o kmpp/KMeans.o -O3
 
 kmpp/KmTree.o: kmpp/KmTree.cpp 
-	g++ -m64 -c kmpp/KmTree.cpp -o kmpp/KmTree.o
+	g++ -m64 -c kmpp/KmTree.cpp -o kmpp/KmTree.o -O3
 
 kmpp/KmUtils.o: kmpp/KmUtils.cpp 
-	g++ -m64 -c kmpp/KmUtils.cpp -o kmpp/KmUtils.o
+	g++ -m64 -c kmpp/KmUtils.cpp -o kmpp/KmUtils.o -O3
 	
 	
 testfile.cpp: kmpp/KMeans.h
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.