Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signal 9 making example results for "projectivePoints" on riscv64 #1833

Closed
d-torrance opened this issue Jan 18, 2021 · 5 comments
Closed

signal 9 making example results for "projectivePoints" on riscv64 #1833

d-torrance opened this issue Jan 18, 2021 · 5 comments

Comments

@d-torrance
Copy link
Member

From builds of the 1.17.1 package for Debian unstable and Ubuntu 21.04 for riscv64:

 -- making example results for "projectivePoints"                           
 ulimit -c unlimited; ulimit -t 700; ulimit -m 850000; ulimit -s 8192; ulimit -n 512;  cd /tmp/M2-2429242-0/2-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/<<PKGBUILDDIR>>/M2/usr-dist/riscv64-Linux-Debian-unstable/bin/M2-binary" -q --int --no-randomize --no-readline --silent --stop --print-width 129 -e 'needsPackage("Points",Reload=>true,FileName=>"/<<PKGBUILDDIR>>/M2/Macaulay2/packages/Points.m2")' <"/tmp/M2-2429242-0/0_projective__Points.m2" >>"/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/Points/example-output/_projective__Points.errors" 2>&1
/<<PKGBUILDDIR>>/M2/usr-dist/common/share/doc/Macaulay2/Points/example-output/_projective__Points.errors:0:1: (output file) error: Macaulay2 killed by signal 9
/tmp/M2-2429242-0/0_projective__Points.m2:0:1: (input file)
M2: *** Error 9

...

../../m2/debugging.m2:20:6:(1):[9]: error: installPackage: 1 error(s) occurred running examples for package Points:

_projective__Points.errors
**************************
     3 2 7 3 9 0 4 8 4 1 1 6 8 4 4 5 5 0 1 8 8 4 9 6 8 0 9 |

              6        150
o7 : Matrix ZZ  <--- ZZ

i8 : elapsedTime (inG,G) = projectivePoints(M,R);
 -- 97.0698 seconds elapsed

i9 : elapsedTime H = projectivePointsByIntersection(M,R);
Killed

../../m2/installPackage.m2:696:14:(1):[8]: --back trace--
../../m2/methods.m2:119:80:(1):[7]: --back trace--
../../m2/option.m2:16:8:(1):[6]: --back trace--
../../m2/installPackage.m2:580:5:(1):[5]: --back trace--
../../m2/methods.m2:119:80:(1):[4]: --back trace--
../../m2/option.m2:16:8:(1):[3]: --back trace--
currentString:1:1:(3):[2]: --back trace--
Macaulay2/Core/startup.m2.in:561:33:(0):[1]: --back trace--
Macaulay2/Core/startup.m2.in:672:6:(0): --back trace--
make[3]: *** [Makefile:93: /<<PKGBUILDDIR>>/M2/usr-dist/riscv64-Linux-Debian-unstable/lib/riscv64-linux-gnu/Macaulay2/Points/.installed] Error 1
@d-torrance
Copy link
Member Author

This also just happened during the mipsel build.

@d-torrance
Copy link
Member Author

This example is probably too big, anyway. Even on my halfway decent amd64 system, it takes about a minute to run. From a bunch of build logs:

grep --color -nH --null -e "making example results for \"projectivePoints\"" ~/pbuilder/sid_result/*.build
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git1011.f2f4e60+ds-1_amd64.build\022535: -- making example results for "projectivePoints"                            -- 54.7892 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git1054.cbd7cca+ds-1_amd64.build\022597: -- making example results for "projectivePoints"                            -- 54.3443 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git1102.2d48ff6+ds-1_amd64.build\022685: -- making example results for "projectivePoints"                            -- 56.8461 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git1111.c9b654a+ds-1_amd64.build\022685: -- making example results for "projectivePoints"                            -- 61.5203 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git802.e091f52+ds-1_amd64.build\021176: -- making example results for "projectivePoints"                            -- 60.7752 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git806.a01d953+ds-1_amd64.build\021122: -- making example results for "projectivePoints"                            -- 62.4953 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git815.1b4bbe4+ds-1_amd64.build\022525: -- making example results for "projectivePoints"                            -- 56.1011 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.0.2+git822.37eca0b+ds-1_amd64.build\022527: -- making example results for "projectivePoints"                            -- 54.5067 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.99+git49.cfeee01+ds-1_amd64.build\022685: -- making example results for "projectivePoints"                            -- 57.6835 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.16.99+git77.4077f1b+ds-1_amd64.build\022720: -- making example results for "projectivePoints"                            -- 57.6492 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17.0.1+git100.b2c27ca+ds-1_amd64.build\022702: -- making example results for "projectivePoints"                            -- 54.2799 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17.0.1+git110.73d0edb+ds-1_amd64.build\022706: -- making example results for "projectivePoints"                            -- 58.3262 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17.0.1+git132.f0da8e8+ds-1_amd64.build\022704: -- making example results for "projectivePoints"                            -- 54.8146 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17.0.1+git160.88a6bdc+ds-1_amd64.build\022715: -- making example results for "projectivePoints"                            -- 54.491 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17.0.1+git179.85f5395+ds-1_amd64.build\022701: -- making example results for "projectivePoints"                            -- 53.1656 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+ds-1_amd64.build\022695: -- making example results for "projectivePoints"                            -- 53.9007 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git186.fd73e6e+ds-1_amd64.build\022756: -- making example results for "projectivePoints"                            -- 55.4822 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git34.f65658b+ds-1_amd64.build\022713: -- making example results for "projectivePoints"                            -- 53.7796 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git57.2feb8cc+ds-1_amd64.build\022683: -- making example results for "projectivePoints"                            -- 54.2415 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git63.160fd88+ds-1_amd64.build\022682: -- making example results for "projectivePoints"                            -- 54.4994 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git83.66187c9+ds-1_amd64.build\022682: -- making example results for "projectivePoints"                            -- 59.3988 seconds elapsed
/home/profzoom/pbuilder/sid_result/macaulay2_1.17+git90.db9d844+ds-1_amd64.build\022682: -- making example results for "projectivePoints"                            -- 56.7564 seconds elapsed

@d-torrance
Copy link
Member Author

Ah, but apparently, that's the point:

i6 : help projectivePoints

o6 = projectivePoints -- produces the ideal and initial ideal from the coordinates of a finite set of projective points
     ******************************************************************************************************************

...

     This algorithm may be faster than computing the intersection of the ideals
     of each projective point.

...

     +---------------------------------------------------------------------------------------------------------------------------------+
     |i8 : elapsedTime (inG,G) = projectivePoints(M,R);                                                                                |
     | -- 6.04181 seconds elapsed                                                                                                      |
     +---------------------------------------------------------------------------------------------------------------------------------+
     |i9 : elapsedTime H = projectivePointsByIntersection(M,R);                                                                        |
     | -- 80.9046 seconds elapsed                                                                                                      |
     +---------------------------------------------------------------------------------------------------------------------------------+

@DanGrayson
Copy link
Member

81 seconds is too long -- examples in documentation should be simple. (And the output needn't include timings.)

@d-torrance
Copy link
Member Author

This also caused the mips64el build to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants