#15316: Make gf2x respect SAGE_FAT_BINARY and use --libdir
-------------------------------------+-------------------------------------
       Reporter:  jpflori            |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  critical           |    Milestone:  sage-6.3
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:  spkg gf2x          |    Reviewers:  Jeroen Demeyer
        Authors:  Jean-Pierre        |  Work issues:
  Flori, Erik Massop                 |       Commit:
Report Upstream:  N/A                |  3ca3e7b9386475ccefea3f9f9c6c0a29c141190d
         Branch:                     |     Stopgaps:
  u/emassop/ticket/15316             |
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by emassop):

 * status:  needs_review => needs_work


Comment:

 With --enable-hardware-specific-code (the default), it depends on whether
 code with sse2/pclmul can be '''compiled and executed'''.

 ||=cpu   =||=execute sse2 =||=execute pclmul =||=dir          =||
 ||x86_64  ||yes            ||yes              ||x86_64_pclmul  ||
 ||x86_64  ||no             ||yes              ||x86_64_pclmul  ||
 ||x86_64  ||yes            ||no               ||x86_64         ||
 ||x86_64  ||no             ||no               ||generic64      ||

 With --disable-hardware-specific-code: generic64.

 Hmm, according to the discussion above that latter should be x86_64
 instead of generic64, right? I'll fiddle with this some more.

 I'm thinking of having the options --enable-sse2 and --enable-pclmul with
 values "no"/"hostcpu"/"native"/"yes", with as default the value of
 --enable-hardware-specific-code which would itself defaults to "native".
 Value "hostcpu" would enable minimally for this $host_cpu (for x86_64 this
 would be sse2 yes and pclmul no). Value "native" would try to compile and
 execute. Having calculated the final values for --enable-sse2 and
 --enable-pclmul, sse2 and pclmul would be enabled based on these values.
 Configure would error out if the compiler lacks support.

 The default directory would be selected based on $host_cpu and whether
 sse2 and pclmul are enabled. When the directory is forced, insufficient
 sse2/pclmul might be enabled and configure would error out.

--
Ticket URL: <http://trac.sagemath.org/ticket/15316#comment:62>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to