Conference Room SAD
[thread display] [new arrival display] [word search] [past log] [管理用]

Subject Intel MacにおけるSADの現状(2)
Date: 2006/08/30(Wed) 13:33:42
ContributorS. Yoshimoto < >

吉本です。

かなり時間はかかりましたが、ようやくIntel MacでSADを動かすことができたのでご報告します。
使用したFortranコンパイラはGCCの開発バージョンで、

% gfortran-4.2.0 -v
Using built-in specs.
Target: i386-apple-darwin8.7.1
Configured with: ../gcc/configure --prefix=/Users/yosimoto/tools --enable-languages=c,fortran --with-gmp=/Users/yosimoto/tools --with-mpfr=/Users/yosimoto/tools --with-system-zlib --disable-nls --program-suffix=-4.2.0
Thread model: posix
gcc version 4.2.0 20060830 (experimental)

また、stack-boundary=3ではコアダンプするためこれを4に変更する必要があります。
(山本さん、森田さんに感謝)

amorita-snapshot-611では以下のパッチを当てればOKになります。

% diff -u config/GCC.spec.orig config/GCC.spec
--- config/GCC.spec.orig 2006-05-10 14:19:28.000000000 +0900
+++ config/GCC.spec 2006-08-30 12:53:06.000000000 +0900
@@ -25,9 +25,9 @@
# Use octet-bytes alignment for double on IA-32 architecture,
# because of alignment assumption of SAD core code.(Ex. rlist variable)
ifeq ($(CPU_ARCH),i386)
-SYS_FOPT+=-mpreferred-stack-boundary=3 -malign-double
-SYS_COPT+=-mpreferred-stack-boundary=3 -malign-double
-SYS_CXXOPT+=-mpreferred-stack-boundary=3
+SYS_FOPT+=-mpreferred-stack-boundary=4 -malign-double
+SYS_COPT+=-mpreferred-stack-boundary=4 -malign-double
+SYS_CXXOPT+=-mpreferred-stack-boundary=4
endif

SYS_FOPT_ENABLE_BACKSLASH_ESCAPE=#-fbackslash # g77/gfortran default

まだ、ベンチマークを取った程度しか動かしていませんが、MacBook Pro (T2600, RAM 2GB)
で取ったbench2.sadの結果は以下の通りです。

*********** summary of the bench mark
Function Test 3.413605019450188
Optics Test 5.526476621627808
Tracking Test 7.637219429016113
Matching Test 4.922801971435547
Overall Score (smaller is faster): .269677331050237


- 関連一覧ツリー (Click ▼ to display all articles in a thread.)