On Tue, 13 Mar 2012 22:44:03 P Purkayastha wrote:


On Wednesday, March 14, 2012 4:54:32 AM UTC+8, François wrote:
On Tue, 13 Mar 2012 01:18:41 P Purkayastha wrote:
> On Tuesday, March 13, 2012 3:41:35 PM UTC+8, Jeroen Demeyer wrote:
> > If you do this, you certainly should not restrict yourself to the
> > Graphite command line options, you should optimize gcc's flags in
> > general (like adding -march for example).
> > 
> > Jeroen.
> 
> If you do set -march, then *-march=native* is a pretty safe option. gcc
> picks up many optimization flags by itself after detecting the cpu. I have
> used this option for more than 3 years now for my whole Gentoo linux setup.
> 
> But (of course) binaries made from -march=native can not be distributed.
-march=native only works on x86* other archs like ppc(64) are not supported.
Francois
Interesting. I didn't know this. It seems -march=native is not present on arm 
and -march is itself not available on ppc. 

Yep, good old -mcpu like in the good old days:
frb15@p2n14-c /hpc/home/frb15 :gcc -v
Using built-in specs.
Target: powerpc64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --
mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-
languages=c,c++,objc,fortran,obj-c++,java --enable-checking=release --with-
gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-
bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-
libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-
__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --
enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-
futex --without-system-libunwind --with-cpu=power4 --enable-secureplt --with-
long-double-128 --build=powerpc64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) 



-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to