About Installing ATLAS with Athlon64x2 for win users
1.1 Requirement: cygwin (gcc, g++, g77, make, gdb )
(#Use cygwin.bat and don't use RXVT,VT102 terminal
emulator or you can't go after 1.5.6.)
1.2 Access to http://www.netlib.org/atlas/
and obtain atlas3.6.0.gz, which is ATLAS source code.
1.3 After downloading atlas3.6.0.gz in /cygwin/usr/local/,
unzip atlas3.6.0.gz, when the command line is
gunzip -c atlas3.6.0.gz | tar xv or
tar xvfz atlas3.6.0.gz.
1.4 Since current directory is /cygwin/usr/local/,
move it to /cygwin/usr/local/ATLAS/, when
the command line is cd ATLAS.
1.5 Build xconfig.exe, when the command line is make
and answer the question below appropriately.
1.5.1 160
159
158
...
3
2
1
Enter number at top left of screen [0]: 160
1.5.2 Have you scoped the errata file? [y]: y
1.5.3 Are you ready to continue? [y]: y
1.5.4 Enter your machine type:
1. Other/Unknown
2. AMD Athlon
3. 32 bit AMD Hammer
4. 64 bit AMD Hammer
5. Pentium PRO
6. Pentium Ⅱ
7. Pentium Ⅲ
8. Pentium 4
Enter machine number [1]: 2
1.5.5 enable Posix threads support? [n]: y
1.5.6 Enter the number processors in system [0]: 2
1.5.7 use express setup? [y]: y
1.5.8 Enter Architecture name (ARCH) [WinNT_ATHLONSSE2_2]:
WinNT_ATHLONSSE2_2
1.5.9 Enter Maximum cache size (KB) [4096]: 4096
1.5.10 Enter File creation delay in seconds [0]: 0
1.5.11 Tune the Level 1 BLAS? [y]: y
1.6 Build ATLAS, when the command line is
make install arch=WinNT_ATHLONSSE2_2.
This work will take more than 2.5 hours to complete.
2.0 About using both ATLAS and LAPACK (Refer to
"About Installing LAPACK for win users".)
2.1 Requirement: Both ATLAS and LAPACK are installed.
ATLAS archives are in the directory /usr/local/ATLAS/
and LAPACK libraries are in the directory
/usr/local/lapack-3.1.1/.
2.2 The current directory is /cygwin/usr/local/.
Make the directory /cygwin/usr/local/etc/, when
the command line is mkdir etc.
2.3 Copy liblapack.a, when the command line is
cp ATLAS/lib/WinNT_ATHLONSSE2_2/liblapack.a
etc/liblapack.a, and move the current directory to
/cygwin/usr/local/etc/, when the command line is
cd etc.
2.4 Expand liblapack.a, when the command line is
ar x liblapack.a.
2.5 Copy lapack_LINUX.a when the command line is
cp /usr/local/lapack-3.1.1/lapack_LINUX.a
./liblapack.a.
2.6 Integrate *.o into liblapack.a, when the command
line is ar r liblapack.a *.o.
2.7 Copy the library files,when the command lines are
cp liblapack.a /lib/liblapack.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2/libatlas.a
/lib/libatlas.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2/libcblas.a
/lib/libcblas.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2
/libf77blas.a /lib/libf77blas.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2
/libptcblas.a /lib/libptcblas.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2
/libptf77blas.a /lib/libptf77blas.a,
cp /usr/local/ATLAS/lib/WinNT_ATHLONSSE2_2
/libtstatlas.a /lib/libtstatlas.a,
ranlib /lib/liblapack.a, ranlib /lib/libatlas.a,
ranlib /lib/libf77blas.a, ranlib /lib/libcblas.a,
ranlib /lib/libptf77blas.a, ranlib /lib/libptcblas.a,
ranlib /lib/libtstatlas.a.
2.8 Now you can use ATLAS and LAPACK, when the command
line is
g77 -o file01 file01.f -llapack -lf77blas -lcblas
-latlas -lg2c -lm or
g95 -o file01 file01.f90 -llapack -lf77blas -lcblas
-latlas -lg2c -lm,
where file01 were an example and you can use other
fortran 77 or 95 programs.
3.0 About LINPACK benchmark programs
Access to http://www.netlib.org/benchmark/
and you can obtain 1000s, 1000d, linpacks,
and linpackd,
which are benchmark programs.
3.1 EXAMPLES
3.1.1 1000s
g77 -o 1000s 1000s.f
| norm resid | resid | machep |
| 9.56832123E+00 | 5.70633099E-04 | 1.19209290E-07 |
| X(1) | X(n) | |
| 1.00003088E+00 | 9.99999046E-01 | |
| factor | solve | total |
| 2.418E+00 | 0.000E+00 | 2.418E+00 |
| mflops | unit | ratio |
| 2.765E+02 | 7.232E-03 | 4.318E+01 |
3.1.2 1000d
g77 -o 1000d 1000d.f
| norm resid | resid | machep |
| 1.05174252E+01 | 1.16766853E-12 | 2.22044605E-16 |
| X(1) | X(n) | |
| 1.00000000E+00 | 1.00000000E+00 | |
| factor | solve | total |
| 2.995E+00 | 0.000E+00 | 2.995E+00 |
| mflops | unit | ratio |
| 2.233E+02 | 8.958E-03 | 5.348E+01 |
May 18, 2008 in パソコン・インターネット , 学問・資格 , 雑記 ,
トラックバック
このページのトラックバックURL :
http://app.cocolog-nifty.com/t/trackback/93074/41246988
このページへのトラックバック一覧 About Installing ATLAS with Athlon64x2 for win users:


コメント