[Numpy-svn] r5534 - vendor/tools

numpy-svn@scip... numpy-svn@scip...
Sat Jul 26 00:32:54 CDT 2008


Author: cdavid
Date: 2008-07-26 00:32:51 -0500 (Sat, 26 Jul 2008)
New Revision: 5534

Modified:
   vendor/tools/build.py
Log:
Set MHz and PW when configuring ATLAS.

Modified: vendor/tools/build.py
===================================================================
--- vendor/tools/build.py	2008-07-26 05:19:35 UTC (rev 5533)
+++ vendor/tools/build.py	2008-07-26 05:32:51 UTC (rev 5534)
@@ -40,7 +40,7 @@
     if os.path.exists(ATLAS_BUILDDIR):
         shutil.rmtree(ATLAS_BUILDDIR)
     os.makedirs(ATLAS_BUILDDIR)
-    p = Popen(['../configure',  '--with-netlib-lapack=%s' % LAPACK_LIB, '-C', 'if', FC], cwd = ATLAS_BUILDDIR)
+    p = Popen(['../configure',  '--with-netlib-lapack=%s' % LAPACK_LIB, '-C', 'if', FC, "-b %d" % ATLAS_PW, "-m %d" ATLAS_MHZ], cwd = ATLAS_BUILDDIR)
     os.waitpid(p.pid, 0)
 
 def build_lapack():
@@ -101,7 +101,7 @@
     if len(f) < 1:
         raise IOError("file %s not found" % file)
 
-    cfg = Config() 
+    cfg = Config()
     if cfgp.has_section('CPU'):
         if cfgp.has_option('CPU', 'ARCH'):
             cfg.arch = cfgp.get('CPU', 'ARCH')
@@ -130,6 +130,8 @@
     FC = cfg.f77
     LAPACK_F77_FLAGS = cfg.lapack_flags
     ATLAS_TARBALL = 'atlas-3.8.2-%s.tbz2' % ARCH
+    ATLAS_PW = cfg.pw
+    ATLAS_MHZ = cfg.freq
 
     clean()
     for t in cfg.targets:



More information about the Numpy-svn mailing list