Changeset 7eaf72 in git for Singular/LIB/schreyer.lib


Ignore:
Timestamp:
Nov 22, 2012, 8:33:22 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4ca3e3c15a08dab1cfe6bed017b0254dc13734b3
Parents:
da9d522d025bd8d8edf9686d84441705b53f89bd
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-22 20:33:22+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-05-07 04:41:48+02:00
Message:
Added profiler usage during SSres for testAGR(&hard)

add: use attrib(SSinit, "PROFILE", 1); to turn on the profiler during SSres
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    rda9d52 r7eaf72  
    24202420    ",HYBRIDNF:"  +string(attrib(SSinit,"HYBRIDNF"));
    24212421
     2422  int @PROFILE = attrib(SSinit, "PROFILE");
     2423  if(@PROFILE){ string @prof = "SSres_" + @save_res_desc + "_" + name + ".prof"; }
    24222424
    24232425  StartAddResTest(
     
    24272429 
    24282430  option(redSB); option(redTail);
     2431  if(@PROFILE){ProfilerStart(@prof);}
    24292432  timer=0;rtimer=0;def R=SSres(I,0);@m=rtimer;
     2433  if(@PROFILE){ProfilerStop();}
    24302434  setring R;module M;list @l=list();@l[size(RES)-1]=list();r=nrows(RES[1]);for(i=2;i<=size(RES);i++){M=RES[i];rr=nrows(M);if((r>0)&&(size(M)>0)&&(r<rr)){M=transpose(M);M=M[(r+1)..ncols(M)];M=transpose(M);RES[i]=M;};r=rr;@l[i-1] = M;};resolution RR=@l;RR=minres(RR);def S=betti(RR,1);@t=rtimer;
    24312435  SCheck(R);
     
    25562560  attrib(SSinit, "SYZCHECK", (DEBUG > 0));
    25572561  attrib(SSinit, "KERCHECK", 1);
     2562  attrib(SSinit, "PROFILE", 0);
    25582563
    25592564  ring r; r; ideal M = maxideal(1);
     
    26022607  attrib(SSinit, "SYZCHECK", (DEBUG > 0));
    26032608  attrib(SSinit, "KERCHECK", 0);
     2609  attrib(SSinit, "PROFILE", 1);
    26042610 
    26052611//  option(prot);
     
    27932799  attrib(SSinit, "SYZCHECK", (DEBUG > 0));
    27942800  attrib(SSinit, "KERCHECK", 0);
     2801  attrib(SSinit, "PROFILE", 1);
    27952802 
    27962803//  option(prot);
Note: See TracChangeset for help on using the changeset viewer.