Changeset daa13f in git
- Timestamp:
- Mar 10, 2014, 2:16:22 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 91dd8a5ef5bb06f9f51df16f59786c2ff90de8ca
- Parents:
- 70d976d3bfd86a066c9e62325769fb948f8735249bb56c19a835494d592e023dcce31c901eceefc5
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/HOWTO.FindMemoryHoles
r9bb56c1 rdaa13f 1 Here is a first short HowTo on how to locate memory holes in Singular: 2 1.) Make sure you build with -DOM_TRACK=5 (e.g. use Singulart, Singularg). 1 Here is a HowTo for locating memory holes in Singular: 2 3 0.) disable optimization and define flag OM_TRACK=5 : 4 set 5 CXXFLAGS=" -O0 -DOM_TRACK=5 " 6 CFLAGS=" -O0 -DOM_TRACK=5 " 7 explicitly, since configure option '--disable-optimizationflags' does not enable -O0 8 9 1.) configure Singular with options 10 " --enable-debug --with-track-fl --with-track-backtrace " 11 or similar (see available options from 'cd omalloc/ && ./configure --help ) 3 12 2.) Use system("mtrack", [<level>, [<filename>]]) to get a report about 4 13 unused memory, where -
Singular/iparith.cc
r9bb56c1 rdaa13f 2526 2526 const int n = L->nr; assume (n >= 0); 2527 2527 std::vector<ideal> V(n + 1); 2528 2528 2529 2529 for(int i = n; i >= 0; i--) V[i] = (ideal)(L->m[i].Data()); 2530 2530 2531 2531 res->data=interpolation(V, (intvec*)v->Data()); 2532 2532 setFlag(res,FLAG_STD); … … 5114 5114 switch (t) 5115 5115 { 5116 case INT_CMD: res->data=omStrDup("int"); break; 5117 case POLY_CMD: res->data=omStrDup("poly"); break; 5118 case VECTOR_CMD: res->data=omStrDup("vector"); break; 5119 case STRING_CMD: res->data=omStrDup("string"); break; 5120 case INTVEC_CMD: res->data=omStrDup("intvec"); break; 5121 case IDEAL_CMD: res->data=omStrDup("ideal"); break; 5122 case MATRIX_CMD: res->data=omStrDup("matrix"); break; 5123 case MODUL_CMD: res->data=omStrDup("module"); break; 5124 case MAP_CMD: res->data=omStrDup("map"); break; 5125 case PROC_CMD: res->data=omStrDup("proc"); break; 5126 case RING_CMD: res->data=omStrDup("ring"); break; 5127 case QRING_CMD: res->data=omStrDup("qring"); break; 5128 case INTMAT_CMD: res->data=omStrDup("intmat"); break; 5129 case BIGINTMAT_CMD: res->data=omStrDup("bigintmat"); break; 5130 case NUMBER_CMD: res->data=omStrDup("number"); break; 5131 case BIGINT_CMD: res->data=omStrDup("bigint"); break; 5132 case LIST_CMD: res->data=omStrDup("list"); break; 5133 case PACKAGE_CMD: res->data=omStrDup("package"); break; 5134 case LINK_CMD: res->data=omStrDup("link"); break; 5135 case RESOLUTION_CMD: res->data=omStrDup("resolution");break; 5116 case INT_CMD: 5117 case POLY_CMD: 5118 case VECTOR_CMD: 5119 case STRING_CMD: 5120 case INTVEC_CMD: 5121 case IDEAL_CMD: 5122 case MATRIX_CMD: 5123 case MODUL_CMD: 5124 case MAP_CMD: 5125 case PROC_CMD: 5126 case RING_CMD: 5127 case QRING_CMD: 5128 case INTMAT_CMD: 5129 case BIGINTMAT_CMD: 5130 case NUMBER_CMD: 5131 case BIGINT_CMD: 5132 case LIST_CMD: 5133 case PACKAGE_CMD: 5134 case LINK_CMD: 5135 case RESOLUTION_CMD: 5136 res->data=omStrDup(Tok2Cmdname(t)); break; 5136 5137 case DEF_CMD: 5137 5138 case NONE: res->data=omStrDup("none"); break; -
factory/Makefile.am
r70d976 rdaa13f 8 8 9 9 libfactory_la_LIBADD = ${builddir}/libfac/libfac.la \ 10 $( OMALLOC_LDFLAGS) $(OMALLOC_R_LDADD) $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS)10 $(RESOURCES_LDFLAGS) $(OMALLOC_LDFLAGS) $(OMALLOC_R_LDADD) $(FLINT_LIBS) $(GMP_LIBS) $(NTL_LIBS) 11 11 12 12 libfactory_la_LDFLAGS = -release ${PACKAGE_VERSION} -
factory/configure.ac
r70d976 rdaa13f 350 350 OMALLOC_CFLAGS="$OMALLOC_CFLAGS -I${with_omalloc_extra_dir}" 351 351 OMALLOC_LDFLAGS="$OMALLOC_LDFLAGS -L${with_omalloc_extra_dir}/omalloc" 352 if test "x$with_Singular" = xyes; then353 OMALLOC_LDFLAGS="$OMALLOC_LDFLAGS -L${with_omalloc_extra_dir}/resources"354 fi355 352 fi 356 353 … … 367 364 # OMALLOC_G_LDADD="-lresources_g -lomalloc_g" 368 365 OMALLOC_R_LDADD="-lomalloc" 369 if test "x$with_Singular" = xyes; then370 OMALLOC_R_LDADD="$OMALLOC_R_LDADD -lresources"371 fi372 366 373 367 AC_DEFINE(HAVE_OMALLOC, 1, [omalloc support]) … … 381 375 AC_MSG_RESULT(no) 382 376 fi 377 378 if test "x$ENABLE_OMALLOC" = xyes && test "x$with_Singular" = xyes; then 379 RESOURCES_LDFLAGS="$RESOURCES_LDFLAGS -L${with_omalloc_dir}/resources -L${with_omalloc_extra_dir}/resources -lresources " 380 AC_SUBST(RESOURCES_LDFLAGS) 381 fi 383 382 384 383 AM_CONDITIONAL([ENABLE_OMALLOC],[test "x$ENABLE_OMALLOC" = xyes]) … … 440 439 #AC_SUBST(uninstalltargets) 441 440 442 factory_version=" 3.1.3"441 factory_version="4.0.0" 443 442 factory_configuration="'$ac_configure_args' in `pwd`" 444 443 AC_SUBST(factory_version) -
factory/test.cc
r70d976 rdaa13f 1 1 #include <factory/factory.h> 2 #ifdef SINGULAR 3 #include <resources/feFopen.h> 4 #endif 2 5 #include "cf_assert.h" 3 6 … … 76 79 }*/ 77 80 81 #ifdef SINGULAR 82 extern void feInitResources(const char* argv0 = NULL); 83 #endif 84 78 85 int main( int, char *argv[] ) 79 86 { … … 88 95 return(1); 89 96 } 97 98 #ifdef SINGULAR 99 feInitResources(argv[0]); 100 #endif 90 101 91 102 // On (SW_USE_EZGCD); On (SW_USE_EZGCD_P); // TODO&NOTE: these switches lead to failed tests (with nonzero p)!
Note: See TracChangeset
for help on using the changeset viewer.