added support for profiling
This commit is contained in:
parent
d7ea3b068d
commit
cd42cf4043
@ -19,7 +19,7 @@ AM_LDFLAGS=
|
|||||||
AM_CXXFLAGS=
|
AM_CXXFLAGS=
|
||||||
|
|
||||||
AM_CXXFLAGS += -g
|
AM_CXXFLAGS += -g
|
||||||
AM_CXXFLAGS += $(OPTIMIZEOPT) $(CUDAOPT) $(FORINTOPT) $(DEBUGOPT) $(MATPTROPT)
|
AM_CXXFLAGS += $(OPTIMIZEOPT) $(CUDAOPT) $(FORINTOPT) $(DEBUGOPT) $(PROFILEOPT) $(MATPTROPT)
|
||||||
AM_CXXFLAGS += -DNO_STRASSEN -DFORTRAN_
|
AM_CXXFLAGS += -DNO_STRASSEN -DFORTRAN_
|
||||||
|
|
||||||
AM_CXXFLAGS += $(CBLASOPT) $(CLAPACKOPT)
|
AM_CXXFLAGS += $(CBLASOPT) $(CLAPACKOPT)
|
||||||
|
@ -141,6 +141,15 @@ AC_ARG_ENABLE([debug],[ --disable-debug not to perform some range-checking [[
|
|||||||
,)
|
,)
|
||||||
AC_SUBST([DEBUGOPT])
|
AC_SUBST([DEBUGOPT])
|
||||||
|
|
||||||
|
PROFILEOPT=""
|
||||||
|
AC_ARG_ENABLE([profile],[ --enable-profile to perform performance profiling [[default=no]]],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) PROFILEOPT="-pg";;
|
||||||
|
no) ;;
|
||||||
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-profile]) ;;
|
||||||
|
esac],
|
||||||
|
,)
|
||||||
|
AC_SUBST([PROFILEOPT])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user