-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Add domains for permutation groups #10335
Comments
comment:1
This depends |
This comment has been minimized.
This comment has been minimized.
Reviewer: Robert Miller |
Work Issues: needs rebase |
comment:3
Applying to
The failure:
Looks trivial to fix, and I'm excited to see this feature in Sage. Thank you, Mike! |
This comment has been minimized.
This comment has been minimized.
comment:5
This was most likely a minor conflict with Rob's permgroup patches which were merged late in the 4.6.2 release cycle. Only apply: trac_10335-permgroup_domain-mh.2.patch |
Changed work issues from needs rebase to none |
comment:6
Ah, the test fail, and that's because the patch still did not commute perfectly with trac_8359-coxeter-groups-permutation-nt.patch. we need to have this patch add the category argument to Mike: let me know if you can do it shortly, and then #8359 is fair game. Otherwise I'll handle it. |
This comment has been minimized.
This comment has been minimized.
comment:8
I've fixed the issue along with updating the patch at #8359. Only apply: trac_10335-permgroup_domain-mh.patch |
comment:9
This looks real good, Mike. I spent some time with this today. I know its not done yet, but hopefully the following will be helpful. I applied the patch from sage-combinat for #8359 to 4.7.alpha1, as best I could tell (used patch from http://combinat.sagemath.org/hgwebdir.cgi/patches/rev/508d4942a6d2). One hunk failure at sage/combinat/root_system/all.py. Then #10334 had a hunk failure in sage/groups/perm_gps/permgroup.py and #10335 had a had failure in sage/categories/pushout.py. All easy to fix by hand, and maybe a result of not getting the right thing from the sage-combinat server. Passed all tests in sage/groups/perm_gps, except two, so not too far off. Both doctest failures look very minor, and a result of routines I wrote that have been added recently.
I think the stabilizer() routine needs some work.
"position" is mis-spelled as first defined, and in the return, I think "point" should be replaced with "position". With these changes, this seems to work properly with a non-trivial domain in play. Not a comprehensive look, but hopefully of use. Let me know what I can do to help (including assisting with documentation). It'd be nice if there was a patch, or something, at #8359 explaining how best to apply that work. Rob |
comment:10
Hi Mike, For the record: I rebased trac_10335-permgroup_domain-mh.patch on the sage-combinat server on top of #9949 |
comment:11
Hi Mike! Replying to @nthiery:
With Rob we are both at Sage days 30, and would love to push permutation groups in. Rob is going to rebase #10334, and I'll finalize the review. #10335 itself needs rebase on 3.4.7, and has quite a few failing doctests, though most look harmless (it's just that the output of permutation groups have changed). Would there be any chance for you to work on this early this week? Thanks! Cheers, |
comment:12
Sure -- I'll try to get this taken care of tonight. |
comment:13
I've fixed the doctest failures and updated the patch. |
comment:14
I ran
Saw these in the patch itself:
|
Dependencies: #10334 |
comment:64
Replying to @rbeezer:
My build was interrupted (long story) and now two files are giving segfaults when I doctest, with or without the patch. Don't panic - likely entirely all my fault. So anyway, I'm starting over and building overnight. Stay tuned. Rob |
comment:65
alpha3-prerelease segfaults during testing, without patch. Errors, followed by system info. I can follow up with more testing, if requested.
|
comment:66
Replying to @rbeezer:
That's either due to Linaro, or, more likely, an ATLAS problem, since our version afaik doesn't yet support Sandy Bridge (second generation "Core i"). You could try using your system's ATLAS (may have to install it with your package manager first), by doing: $ export SAGE_ATLAS_LIB=/usr/lib64/atlas # the directory; usual place on 64-bit Linux
$ rm $SAGE_ROOT/spkg/installed/atlas-*
$ cd $SAGE_ROOT
$ env SAGE_UPGRADING=yes make # or "... make build" The |
comment:67
Replying to @nexttime: $ export SAGE_ATLAS_LIB=/usr/lib64/atlas # the directory; usual place on 64-bit Linux
... Might be |
comment:68
Thanks, Leif. Ubuntu installs ATLAS into
I've installed the packages Any advice? My Sandy Bridge motherboard is about 8 months old. Will anybody with a newer chip have to go through a drill like this? Would Volker's ATLAS ticket be a better/workable approach? |
comment:69
Replying to @rbeezer:
I've asked Volker on the IRC for help. (Perhaps drop in if you can.) If some libraries are simply in different directories, you could just create symbolic links to them in the
That shouldn't matter; Intel's bug just causes a SATA part of the chipset to die earlier. Whether AVX is available depends on your board (and chipset); if you have on-board graphics, AVX isn't usable.
Simon King did successfully build the prerelease on a (Sandy Bridge) Core i3 with Debian x86_64; there only five doctests (in three files) failed due to numerical noise (the same doctests that failed on some other "rare" and older platforms). |
comment:70
The following bug in Ubuntu launchpad says that the symlinks for the standard libraries are not created: https://bugs.launchpad.net/ubuntu/+source/atlas/+bug/769180 So you either create them manually (in a directory of your choice), or you compile ATLAS again. For the latter, you should probably try to set export SAGE_ATLAS_ARCH=Corei7,SSE3,SSE2,SSE1 This works only with the new atlas spkg (4.7.2.alpha3+) |
comment:71
AVX is just the CPU instruction set extension du jour. The version of ATLAS that we are shipping knows nothing about AVX. All 2011 sandy bridge cpus have it, irrespective of on-board graphics. |
comment:72
Replying to @vbraun:
Aha. Wasn't sure about that. But does 3.8.4 "know" Sandy Brigde already?
They have it, but you can only use it when the CPU doesn't also act as a GPU. And afaik that's hard-wired, i.e., you even cannot use it if your motherboard has on-board graphics you don't actually use. |
comment:73
Replying to @vbraun:
I guess you meant alpha2+. Apparently alpha2 in contrast did not segfault for Rob (on that machine), despite having the same ATLAS spkg. At least that's my understanding. |
comment:74
Oh yes, it was merged in alpha2. This is now completely OT, but my (Sandy Bridge) Thinkpad W520 uses the on-board GPU and has AVX: [vbraun@volker-laptop-two ~]$ cat /proc/cpuinfo | head -24
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
stepping : 7
cpu MHz : 2201.000
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 4385.92
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: |
comment:75
Leif and Volker, Thanks for the quick help, and I apologize to the group theorists for diverting this ticket. I've got to attend to some other things the rest of today, but I'll see if I can get the symlinks in place with guidance from that bug report. I have Sandy Bridge with no on-board graphics. I have built and tested alpha2 - this is my first problem like this. Rob |
comment:76
Replying to @rbeezer:
Yep, we can continue the discussion on e.g. this sage-release thread, or -- preferably -- a new one there. |
comment:77
alpha3 prerelease build is fixed and passes long tests, with and without this rebased patch. To quote William "merge that sucker"! In other words, positive review. Second line of patch summary message credits Jason Hill - I'll add him to the authors, and Mike's name is still on the main patch. David - feel free to cc me on any of the follow-on tickets that might need review, especially if they are cosmetic changes. I have not yet looked at them at all. Leif - thanks for your attention to this one and help with my build challenges. Everybody else - my apologies again for getting this ticket off the tracks. I need to post a summary on sage-release. Rob |
Changed author from Mike Hansen, David Loeffler to Mike Hansen, Jason Hill, David Loeffler |
Merged: sage-4.7.2.alpha3 |
comment:80
Hello and sorry to add a comment on a closed ticket. I have a patch which depend on it and the patchbot try to apply 2 patches instead one here. apply trac_10335-permgroup_domain-rebase.patch |
Often, one wants to define a permutation group on a set other than
{1,2,...,n}
such as say{'a', 'b', 'c', 'd'}
.For example,
Apply:
Depends on #10334
CC: @sagetrac-sage-combinat @sagetrac-jasonbhill @rbeezer @jdemeyer
Component: group theory
Keywords: sd31
Author: Mike Hansen, Jason Hill, David Loeffler
Reviewer: Robert Miller, Rob Beezer, Nicolas Borie, Nicolas M. Thiéry
Merged: sage-4.7.2.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/10335
The text was updated successfully, but these errors were encountered: