<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: ËÎÌå; COLOR: #000000; FONT-SIZE: 10.5pt
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19170"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hi, a newbie to x264 and video processing.</DIV>
<DIV>My quick question is:</DIV>
<DIV>How to measure the AMD bulldozer XOP/FMA4 instruction's impact to x264
performance?</DIV>
<DIV>Want to know the version/branch before and after XOP adoption and give a
brief comparison on my FX8150.</DIV>
<DIV> </DIV>
<DIV>Thanks. Haibo.</DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A
href="mailto:x264-devel-request@videolan.org">x264-devel-request</A></DIV>
<DIV><B>Date:</B> 2012-01-09 19:00</DIV>
<DIV><B>To:</B> <A
href="mailto:x264-devel@videolan.org">x264-devel</A></DIV>
<DIV><B>Subject:</B> x264-devel Digest, Vol 56, Issue 5</DIV></DIV></DIV>
<DIV>
<DIV>Send x264-devel mailing list submissions to</DIV>
<DIV>x264-devel@videolan.org</DIV>
<DIV> </DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, visit</DIV>
<DIV>http://mailman.videolan.org/listinfo/x264-devel</DIV>
<DIV>or, via email, send a message with subject or body 'help' to</DIV>
<DIV>x264-devel-request@videolan.org</DIV>
<DIV> </DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV>x264-devel-owner@videolan.org</DIV>
<DIV> </DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of x264-devel digest..."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Today's Topics:</DIV>
<DIV> </DIV>
<DIV> 1. Re: [patch] improve install process (Tim Mooney)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Thu, 5 Jan 2012 17:02:32 -0600 (CST)</DIV>
<DIV>From: Tim Mooney <Tim.Mooney@ndsu.edu></DIV>
<DIV>To: Jason Garrett-Glaser <jason@x264.com></DIV>
<DIV>Cc: Mailing list for x264 developers <x264-devel@videolan.org></DIV>
<DIV>Subject: Re: [x264-devel] [patch] improve install process</DIV>
<DIV>Message-ID:</DIV>
<DIV><alpine.SOC.2.02.1201051701050.5335@dogbert.cc.ndsu.NoDak.edu></DIV>
<DIV>Content-Type: text/plain; charset="us-ascii"; Format="flowed"</DIV>
<DIV> </DIV>
<DIV>In regard to: Re: [x264-devel] [patch] improve install process, Jason...:</DIV>
<DIV> </DIV>
<DIV>> On Fri, Dec 30, 2011 at 3:49 PM, Tim Mooney <Tim.Mooney@ndsu.edu> wrote:</DIV>
<DIV>>></DIV>
<DIV>>> [I'm not subscribed to the mailing list, so please Cc: me on any responses,</DIV>
<DIV>>> assuming the moderator approves this post]</DIV>
<DIV>>></DIV>
<DIV>>> I recently built a libx264 snapshot on my x86_64-sun-solaris2.10 workstation</DIV>
<DIV>>> using the no-cost Oracle/Sun Workshop compiler. I have</DIV>
<DIV>>> a couple patches that improved the configure & build process for me,</DIV>
<DIV>>> the first of which is below my signature. The longer patch will be in</DIV>
<DIV>>> a separate email.</DIV>
<DIV>></DIV>
<DIV>> Your mailer appears to have garbled this patch in some fashion, as it</DIV>
<DIV>> won't apply. Can you just attach it directly?</DIV>
<DIV> </DIV>
<DIV>Happily!</DIV>
<DIV> </DIV>
<DIV>Sorry for the trouble and thanks for considering the patch.</DIV>
<DIV> </DIV>
<DIV>Tim</DIV>
<DIV>-- </DIV>
<DIV>Tim Mooney Tim.Mooney@ndsu.edu</DIV>
<DIV>Enterprise Computing & Infrastructure 701-231-1076 (Voice)</DIV>
<DIV>Room 242-J6, IACC Building 701-231-8541 (Fax)</DIV>
<DIV>North Dakota State University, Fargo, ND 58105-5164</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>--- x264-snapshot-20111228-2245.orig/configure
2011-12-28 15:45:03.000000000 -0600</DIV>
<DIV>+++ x264-snapshot-20111228-2245/configure
2011-12-30 16:57:02.071786398 -0600</DIV>
<DIV>@@ -110,6 +110,24 @@</DIV>
<DIV> done</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV>+</DIV>
<DIV>+suncc_cflags() {</DIV>
<DIV>+ log_msg "Filtering CFLAGS for Sun Workshop compiler"</DIV>
<DIV>+ # Filter out some of the gcc flags that the Sun/Oracle Workshop compiler</DIV>
<DIV>+ # doesn't understand. Many of these are modeled after intel_cflags()</DIV>
<DIV>+ for arg in $*; do</DIV>
<DIV>+ [ "$arg" = -falign-loops ] && arg=</DIV>
<DIV>+ [ "$arg" = -ffast-math ] && arg='-xlibmopt -fround=nearest '</DIV>
<DIV>+ [ "$arg" = -fno-tree-vectorize ] && arg=</DIV>
<DIV>+ [ "$arg" = -fomit-frame-pointer ] && arg=</DIV>
<DIV>+ [ "$arg" = -fPIC ] && arg=-KPIC</DIV>
<DIV>+ [ "$arg" = -g ] && arg='-g -xs '</DIV>
<DIV>+ [ "$arg" = -Wall ] && arg=-errtags=yes</DIV>
<DIV>+ [ "$arg" = -Wshadow ] && arg=</DIV>
<DIV>+ [ -n "$arg" ] && echo -n "$arg "</DIV>
<DIV>+ done</DIV>
<DIV>+}</DIV>
<DIV>+</DIV>
<DIV> cc_check() {</DIV>
<DIV> if [ -z "$3" ]; then</DIV>
<DIV> if [ -z "$1$2" ]; then</DIV>
<DIV>@@ -391,6 +410,8 @@</DIV>
<DIV> host_vendor="${host%%-*}"</DIV>
<DIV> host_os="${host#*-}"</DIV>
<DIV> </DIV>
<DIV>+log_msg "host=$host, host_os=$host_os, host_cpu=$host_cpu"</DIV>
<DIV>+</DIV>
<DIV> # test for use of Intel Compiler</DIV>
<DIV> if [[ $host_os = mingw* || $host_os = cygwin* ]]; then</DIV>
<DIV> if [[ `basename "$CC"` = icl* ]]; then</DIV>
<DIV>@@ -403,6 +424,15 @@</DIV>
<DIV> `$CC 2>&1 | grep -q "Intel(R) 64"` && host_cpu=x86_64</DIV>
<DIV> cpp_check "" "" "_MSC_VER >= 1400" || die "Windows Intel Compiler support requires Visual Studio 2005 or newer"</DIV>
<DIV> fi</DIV>
<DIV>+elif [[ $host_os = solaris* ]]; then</DIV>
<DIV>+ log_msg "Host is solaris"</DIV>
<DIV>+ if `$CC -V 2>&1 | grep 'Sun C' >/dev/null` ; then</DIV>
<DIV>+ log_msg "Compiler is suncc, filtering CFLAGS"</DIV>
<DIV>+ compiler=suncc</DIV>
<DIV>+ CFLAGS="$(suncc_cflags $CFLAGS)"</DIV>
<DIV>+ CFLAGS="$CFLAGS -Xa -xc99=all"</DIV>
<DIV>+ log_msg "After filtering CFLAGS=$CFLAGS"</DIV>
<DIV>+ fi</DIV>
<DIV> else</DIV>
<DIV> if [[ `basename "$CC"` = icc* ]]; then</DIV>
<DIV> AR="xiar"</DIV>
<DIV>@@ -616,7 +647,7 @@</DIV>
<DIV> </DIV>
<DIV> cc_check || die "No working C compiler found."</DIV>
<DIV> </DIV>
<DIV>-if [ $compiler != ICL ]; then</DIV>
<DIV>+if [ $compiler != ICL -a $compiler != suncc ]; then</DIV>
<DIV> if cc_check '' -std=gnu99 'for( int i = 0; i < 9; i++ );' ; then</DIV>
<DIV> CFLAGS="$CFLAGS -std=gnu99"</DIV>
<DIV> elif cc_check '' -std=c99 'for( int i = 0; i < 9; i++ );' ; then</DIV>
<DIV>@@ -741,6 +772,8 @@</DIV>
<DIV> </DIV>
<DIV> if cc_check "math.h" "-Werror" "return log2f(2);" ; then</DIV>
<DIV> define HAVE_LOG2F</DIV>
<DIV>+elif cc_check "math.h" "-errwarn=%all" "return log2f(2);" ; then</DIV>
<DIV>+ define HAVE_LOG2F</DIV>
<DIV> fi</DIV>
<DIV> </DIV>
<DIV> if [ "$vis" = "yes" ] ; then</DIV>
<DIV>@@ -876,7 +909,7 @@</DIV>
<DIV> ASFLAGS="$ASFLAGS -DPIC"</DIV>
<DIV> # resolve textrels in the x86 asm</DIV>
<DIV> cc_check stdio.h "-shared -Wl,-Bsymbolic" && SOFLAGS="$SOFLAGS -Wl,-Bsymbolic"</DIV>
<DIV>- [ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"</DIV>
<DIV>+ [ $SYS = SunOS -a "$ARCH" = "X86" -a $compiler != suncc ] && SOFLAGS="$SOFLAGS -mimpure-text"</DIV>
<DIV> fi</DIV>
<DIV> </DIV>
<DIV> if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then</DIV>
<DIV>@@ -959,6 +992,14 @@</DIV>
<DIV> else</DIV>
<DIV> CFLAGS="-DNDEBUG $CFLAGS"</DIV>
<DIV> fi</DIV>
<DIV>+elif [ $compiler = suncc ]; then</DIV>
<DIV>+ AR="$AR rc "</DIV>
<DIV>+ DEPMM="-xM1"</DIV>
<DIV>+ DEPMT="-xM1"</DIV>
<DIV>+ LD="$CC -o "</DIV>
<DIV>+ LIBX264=libx264.a</DIV>
<DIV>+ # ranlib isn't needed, ar does it</DIV>
<DIV>+ RANLIB=</DIV>
<DIV> else</DIV>
<DIV> AR="$AR rc "</DIV>
<DIV> DEPMM="-MM -g0"</DIV>
<DIV>@@ -971,6 +1011,8 @@</DIV>
<DIV> PROF_GEN_LD="-fprofile-generate"</DIV>
<DIV> PROF_USE_CC="-fprofile-use"</DIV>
<DIV> PROF_USE_LD="-fprofile-use"</DIV>
<DIV>+elif [ $compiler = suncc ]; then</DIV>
<DIV>+ CFLAGS="$(suncc_cflags $CFLAGS)"</DIV>
<DIV> else</DIV>
<DIV> CFLAGS="$(intel_cflags $CFLAGS)"</DIV>
<DIV> # icc does not define __SSE__ until SSE2 optimization and icl never defines it or _M_IX86_FP</DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>x264-devel mailing list</DIV>
<DIV>x264-devel@videolan.org</DIV>
<DIV>http://mailman.videolan.org/listinfo/x264-devel</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>End of x264-devel Digest, Vol 56, Issue 5</DIV>
<DIV>*****************************************</DIV>
<DIV> </DIV></DIV></BODY></HTML>