Commits

opticall  committed 7d72336

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

  • Participants
  • Parent commits 0a330a3

Comments (0)

Files changed (1)

File 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