Changeset daa13f in git


Ignore:
Timestamp:
Mar 10, 2014, 2:16:22 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
91dd8a5ef5bb06f9f51df16f59786c2ff90de8ca
Parents:
70d976d3bfd86a066c9e62325769fb948f8735249bb56c19a835494d592e023dcce31c901eceefc5
Message:
Merge pull request #536 from mmklee/factory_noPP

Factory no pp
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).
     1Here is a HowTo for locating memory holes in Singular:
     2
     30.) 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
     91.) configure Singular with options
     10     " --enable-debug --with-track-fl --with-track-backtrace "
     11     or similar (see available options from 'cd omalloc/ && ./configure --help )
    3122.) Use system("mtrack", [<level>, [<filename>]]) to get a report about
    413    unused memory, where
  • Singular/iparith.cc

    r9bb56c1 rdaa13f  
    25262526  const int n = L->nr; assume (n >= 0);
    25272527  std::vector<ideal> V(n + 1);
    2528  
     2528
    25292529  for(int i = n; i >= 0; i--) V[i] = (ideal)(L->m[i].Data());
    2530    
     2530
    25312531  res->data=interpolation(V, (intvec*)v->Data());
    25322532  setFlag(res,FLAG_STD);
     
    51145114  switch (t)
    51155115  {
    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;
    51365137    case DEF_CMD:
    51375138    case NONE:           res->data=omStrDup("none"); break;
  • factory/Makefile.am

    r70d976 rdaa13f  
    88
    99libfactory_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)
    1111
    1212libfactory_la_LDFLAGS    = -release ${PACKAGE_VERSION}
  • factory/configure.ac

    r70d976 rdaa13f  
    350350    OMALLOC_CFLAGS="$OMALLOC_CFLAGS -I${with_omalloc_extra_dir}"
    351351    OMALLOC_LDFLAGS="$OMALLOC_LDFLAGS -L${with_omalloc_extra_dir}/omalloc"
    352     if test "x$with_Singular" = xyes; then
    353       OMALLOC_LDFLAGS="$OMALLOC_LDFLAGS -L${with_omalloc_extra_dir}/resources"
    354     fi
    355352  fi
    356353 
     
    367364#  OMALLOC_G_LDADD="-lresources_g -lomalloc_g"
    368365  OMALLOC_R_LDADD="-lomalloc"
    369   if test "x$with_Singular" = xyes; then
    370     OMALLOC_R_LDADD="$OMALLOC_R_LDADD -lresources"
    371   fi
    372366
    373367  AC_DEFINE(HAVE_OMALLOC, 1, [omalloc support])
     
    381375  AC_MSG_RESULT(no)
    382376fi
     377
     378if 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)
     381fi
    383382
    384383AM_CONDITIONAL([ENABLE_OMALLOC],[test "x$ENABLE_OMALLOC" = xyes])
     
    440439#AC_SUBST(uninstalltargets)
    441440
    442 factory_version="3.1.3"
     441factory_version="4.0.0"
    443442factory_configuration="'$ac_configure_args' in `pwd`"
    444443AC_SUBST(factory_version)
  • factory/test.cc

    r70d976 rdaa13f  
    11#include <factory/factory.h>
     2#ifdef SINGULAR
     3#include <resources/feFopen.h>
     4#endif
    25#include "cf_assert.h"
    36
     
    7679}*/
    7780
     81#ifdef SINGULAR
     82extern void feInitResources(const char* argv0 = NULL);
     83#endif
     84
    7885int main( int, char *argv[] )
    7986{
     
    8895    return(1);
    8996  }
     97
     98#ifdef SINGULAR
     99  feInitResources(argv[0]);
     100#endif
    90101
    91102//  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.