rename timing demo
This commit is contained in:
		
							parent
							
								
									db1a8b1919
								
							
						
					
					
						commit
						c69c3907c3
					
				
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -14,8 +14,8 @@ coverage*/ | ||||
| coverage.info | ||||
| 
 | ||||
| # suppress output of build process and *nix/windows test executables | ||||
| ltmtest | ||||
| ltmtest.exe | ||||
| timing | ||||
| timing.exe | ||||
| test | ||||
| test.exe | ||||
| mtest | ||||
|  | ||||
							
								
								
									
										14
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								makefile
									
									
									
									
									
								
							| @ -67,17 +67,17 @@ $(LIBNAME):  $(OBJECTS) | ||||
| # So far I've seen improvements in the MP math
 | ||||
| profiled: | ||||
| 	make CFLAGS="$(CFLAGS) -fprofile-arcs -DTESTING" timing | ||||
| 	./ltmtest | ||||
| 	rm -f *.a *.o ltmtest | ||||
| 	./timing | ||||
| 	rm -f *.a *.o timing | ||||
| 	make CFLAGS="$(CFLAGS) -fbranch-probabilities" | ||||
| 
 | ||||
| #make a single object profiled library
 | ||||
| profiled_single: | ||||
| 	perl gen.pl | ||||
| 	$(CC) $(CFLAGS) -fprofile-arcs -DTESTING -c mpi.c -o mpi.o | ||||
| 	$(CC) $(CFLAGS) -DTESTING -DTIMER demo/timing.c mpi.o -lgcov -o ltmtest | ||||
| 	./ltmtest | ||||
| 	rm -f *.o ltmtest | ||||
| 	$(CC) $(CFLAGS) -DTESTING -DTIMER demo/timing.c mpi.o -lgcov -o timing | ||||
| 	./timing | ||||
| 	rm -f *.o timing | ||||
| 	$(CC) $(CFLAGS) -fbranch-probabilities -DTESTING -c mpi.c -o mpi.o | ||||
| 	$(AR) $(ARFLAGS) $(LIBNAME) mpi.o | ||||
| 	ranlib $(LIBNAME) | ||||
| @ -102,8 +102,8 @@ test_standalone: $(LIBNAME) demo/demo.o | ||||
| mtest: | ||||
| 	cd mtest ; $(CC) $(CFLAGS) -O0 mtest.c $(LFLAGS) -o mtest | ||||
| 
 | ||||
| timing: $(LIBNAME) | ||||
| 	$(CC) $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME) $(LFLAGS) -o ltmtest | ||||
| timing: $(LIBNAME) demo/timing.c | ||||
| 	$(CC) $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME) $(LFLAGS) -o timing | ||||
| 
 | ||||
| # You have to create a file .coveralls.yml with the content "repo_token: <the token>"
 | ||||
| # in the base folder to be able to submit to coveralls
 | ||||
|  | ||||
							
								
								
									
										16
									
								
								makefile.icc
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								makefile.icc
									
									
									
									
									
								
							| @ -80,17 +80,17 @@ libtommath.a:  $(OBJECTS) | ||||
| # So far I've seen improvements in the MP math | ||||
| profiled: | ||||
| 	make -f makefile.icc CFLAGS="$(CFLAGS) -prof_gen -DTESTING" timing | ||||
| 	./ltmtest | ||||
| 	rm -f *.a *.o ltmtest | ||||
| 	./timing | ||||
| 	rm -f *.a *.o timing | ||||
| 	make -f makefile.icc CFLAGS="$(CFLAGS) -prof_use" | ||||
| 
 | ||||
| #make a single object profiled library | ||||
| profiled_single: | ||||
| 	perl gen.pl | ||||
| 	$(CC) $(CFLAGS) -prof_gen -DTESTING -c mpi.c -o mpi.o | ||||
| 	$(CC) $(CFLAGS) -DTESTING -DTIMER demo/demo.c mpi.o -o ltmtest | ||||
| 	./ltmtest | ||||
| 	rm -f *.o ltmtest | ||||
| 	$(CC) $(CFLAGS) -DTESTING -DTIMER demo/demo.c mpi.o -o timing | ||||
| 	./timing | ||||
| 	rm -f *.o timing | ||||
| 	$(CC) $(CFLAGS) -prof_use -ip -DTESTING -c mpi.c -o mpi.o | ||||
| 	$(AR) $(ARFLAGS) libtommath.a mpi.o | ||||
| 	ranlib libtommath.a | ||||
| @ -107,11 +107,11 @@ test: libtommath.a demo/demo.o | ||||
| mtest: test | ||||
| 	cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest | ||||
| 
 | ||||
| timing: libtommath.a | ||||
| 	$(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o ltmtest | ||||
| timing: libtommath.a demo/timing.c | ||||
| 	$(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o timing | ||||
| 
 | ||||
| clean: | ||||
| 	rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \ | ||||
| 	rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test timing mpitest mtest/mtest mtest/mtest.exe \ | ||||
|         *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.il etc/*.il *.dyn | ||||
| 	cd etc ; make clean | ||||
| 	cd pics ; make clean | ||||
|  | ||||
| @ -84,5 +84,5 @@ test_standalone: $(LIBNAME) demo/demo.o | ||||
| mtest: | ||||
| 	cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest | ||||
| 
 | ||||
| timing: $(LIBNAME) | ||||
| 	$(LT) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o ltmtest | ||||
| timing: $(LIBNAME) demo/timing.c | ||||
| 	$(LT) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o timing | ||||
|  | ||||
| @ -70,7 +70,7 @@ endif | ||||
| # adjust coverage set
 | ||||
| ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),) | ||||
|    COVERAGE = test_standalone timing | ||||
|    COVERAGE_APP = ./test && ./ltmtest | ||||
|    COVERAGE_APP = ./test && ./timing | ||||
| else | ||||
|    COVERAGE = test_standalone | ||||
|    COVERAGE_APP = ./test | ||||
| @ -113,7 +113,7 @@ cleancov-clean: | ||||
| cleancov: cleancov-clean clean | ||||
| 
 | ||||
| clean: | ||||
| 	rm -f *.gcda *.gcno *.gcov *.bat *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \
 | ||||
| 	rm -f *.gcda *.gcno *.gcov *.bat *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test timing mpitest mtest/mtest mtest/mtest.exe \
 | ||||
|         *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.da *.dyn *.dpi tommath.tex `find . -type f | grep [~] | xargs` *.lo *.la | ||||
| 	rm -rf .libs/ | ||||
| 	${MAKE} -C etc/ clean MAKE=${MAKE} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user