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
|
coverage.info
|
||||||
|
|
||||||
# suppress output of build process and *nix/windows test executables
|
# suppress output of build process and *nix/windows test executables
|
||||||
ltmtest
|
timing
|
||||||
ltmtest.exe
|
timing.exe
|
||||||
test
|
test
|
||||||
test.exe
|
test.exe
|
||||||
mtest
|
mtest
|
||||||
|
14
makefile
14
makefile
@ -67,17 +67,17 @@ $(LIBNAME): $(OBJECTS)
|
|||||||
# So far I've seen improvements in the MP math
|
# So far I've seen improvements in the MP math
|
||||||
profiled:
|
profiled:
|
||||||
make CFLAGS="$(CFLAGS) -fprofile-arcs -DTESTING" timing
|
make CFLAGS="$(CFLAGS) -fprofile-arcs -DTESTING" timing
|
||||||
./ltmtest
|
./timing
|
||||||
rm -f *.a *.o ltmtest
|
rm -f *.a *.o timing
|
||||||
make CFLAGS="$(CFLAGS) -fbranch-probabilities"
|
make CFLAGS="$(CFLAGS) -fbranch-probabilities"
|
||||||
|
|
||||||
#make a single object profiled library
|
#make a single object profiled library
|
||||||
profiled_single:
|
profiled_single:
|
||||||
perl gen.pl
|
perl gen.pl
|
||||||
$(CC) $(CFLAGS) -fprofile-arcs -DTESTING -c mpi.c -o mpi.o
|
$(CC) $(CFLAGS) -fprofile-arcs -DTESTING -c mpi.c -o mpi.o
|
||||||
$(CC) $(CFLAGS) -DTESTING -DTIMER demo/timing.c mpi.o -lgcov -o ltmtest
|
$(CC) $(CFLAGS) -DTESTING -DTIMER demo/timing.c mpi.o -lgcov -o timing
|
||||||
./ltmtest
|
./timing
|
||||||
rm -f *.o ltmtest
|
rm -f *.o timing
|
||||||
$(CC) $(CFLAGS) -fbranch-probabilities -DTESTING -c mpi.c -o mpi.o
|
$(CC) $(CFLAGS) -fbranch-probabilities -DTESTING -c mpi.c -o mpi.o
|
||||||
$(AR) $(ARFLAGS) $(LIBNAME) mpi.o
|
$(AR) $(ARFLAGS) $(LIBNAME) mpi.o
|
||||||
ranlib $(LIBNAME)
|
ranlib $(LIBNAME)
|
||||||
@ -102,8 +102,8 @@ test_standalone: $(LIBNAME) demo/demo.o
|
|||||||
mtest:
|
mtest:
|
||||||
cd mtest ; $(CC) $(CFLAGS) -O0 mtest.c $(LFLAGS) -o mtest
|
cd mtest ; $(CC) $(CFLAGS) -O0 mtest.c $(LFLAGS) -o mtest
|
||||||
|
|
||||||
timing: $(LIBNAME)
|
timing: $(LIBNAME) demo/timing.c
|
||||||
$(CC) $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME) $(LFLAGS) -o ltmtest
|
$(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>"
|
# 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
|
# 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
|
# So far I've seen improvements in the MP math
|
||||||
profiled:
|
profiled:
|
||||||
make -f makefile.icc CFLAGS="$(CFLAGS) -prof_gen -DTESTING" timing
|
make -f makefile.icc CFLAGS="$(CFLAGS) -prof_gen -DTESTING" timing
|
||||||
./ltmtest
|
./timing
|
||||||
rm -f *.a *.o ltmtest
|
rm -f *.a *.o timing
|
||||||
make -f makefile.icc CFLAGS="$(CFLAGS) -prof_use"
|
make -f makefile.icc CFLAGS="$(CFLAGS) -prof_use"
|
||||||
|
|
||||||
#make a single object profiled library
|
#make a single object profiled library
|
||||||
profiled_single:
|
profiled_single:
|
||||||
perl gen.pl
|
perl gen.pl
|
||||||
$(CC) $(CFLAGS) -prof_gen -DTESTING -c mpi.c -o mpi.o
|
$(CC) $(CFLAGS) -prof_gen -DTESTING -c mpi.c -o mpi.o
|
||||||
$(CC) $(CFLAGS) -DTESTING -DTIMER demo/demo.c mpi.o -o ltmtest
|
$(CC) $(CFLAGS) -DTESTING -DTIMER demo/demo.c mpi.o -o timing
|
||||||
./ltmtest
|
./timing
|
||||||
rm -f *.o ltmtest
|
rm -f *.o timing
|
||||||
$(CC) $(CFLAGS) -prof_use -ip -DTESTING -c mpi.c -o mpi.o
|
$(CC) $(CFLAGS) -prof_use -ip -DTESTING -c mpi.c -o mpi.o
|
||||||
$(AR) $(ARFLAGS) libtommath.a mpi.o
|
$(AR) $(ARFLAGS) libtommath.a mpi.o
|
||||||
ranlib libtommath.a
|
ranlib libtommath.a
|
||||||
@ -107,11 +107,11 @@ test: libtommath.a demo/demo.o
|
|||||||
mtest: test
|
mtest: test
|
||||||
cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest
|
cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest
|
||||||
|
|
||||||
timing: libtommath.a
|
timing: libtommath.a demo/timing.c
|
||||||
$(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o ltmtest
|
$(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o timing
|
||||||
|
|
||||||
clean:
|
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
|
*.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.il etc/*.il *.dyn
|
||||||
cd etc ; make clean
|
cd etc ; make clean
|
||||||
cd pics ; make clean
|
cd pics ; make clean
|
||||||
|
@ -84,5 +84,5 @@ test_standalone: $(LIBNAME) demo/demo.o
|
|||||||
mtest:
|
mtest:
|
||||||
cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
|
cd mtest ; $(CC) $(CFLAGS) $(LDFLAGS) mtest.c -o mtest
|
||||||
|
|
||||||
timing: $(LIBNAME)
|
timing: $(LIBNAME) demo/timing.c
|
||||||
$(LT) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o ltmtest
|
$(LT) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o timing
|
||||||
|
@ -70,7 +70,7 @@ endif
|
|||||||
# adjust coverage set
|
# adjust coverage set
|
||||||
ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
|
ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
|
||||||
COVERAGE = test_standalone timing
|
COVERAGE = test_standalone timing
|
||||||
COVERAGE_APP = ./test && ./ltmtest
|
COVERAGE_APP = ./test && ./timing
|
||||||
else
|
else
|
||||||
COVERAGE = test_standalone
|
COVERAGE = test_standalone
|
||||||
COVERAGE_APP = ./test
|
COVERAGE_APP = ./test
|
||||||
@ -113,7 +113,7 @@ cleancov-clean:
|
|||||||
cleancov: cleancov-clean clean
|
cleancov: cleancov-clean 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
|
*.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/
|
rm -rf .libs/
|
||||||
${MAKE} -C etc/ clean MAKE=${MAKE}
|
${MAKE} -C etc/ clean MAKE=${MAKE}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user