Changeset 3443


Ignore:
Timestamp:
Aug 2, 2006, 4:21:24 PM (19 years ago)
Author:
ole
Message:

Attempt to add compiler flags for AMD opteron 64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pypar_dist/setup.py

    r2778 r3443  
    1414from distutils.core import setup, Extension
    1515import distutils.sysconfig
     16import distutils.debug
    1617import os, sys
    1718import popen2
     
    2223    distutils.sysconfig.get_config_vars()
    2324    config_vars = distutils.sysconfig._config_vars
     25
    2426    if sys.platform == 'sunos5':
    2527        config_vars['LDSHARED'] = "gcc -G"
     
    126128    mpi_flags = get_mpi_flags()
    127129
     130
     131    # FIXME: It would be good to set specific compiler flags, e.g.
     132    # for our AMD opteron cluster which is using the portland group
     133    # compiler pgcc, but I can't get this to work let alone get distutils
     134    # to give some diagnostics on what flags it is actually using.
     135    if os.name == 'posix' and os.uname()[4] == 'x86_64':
     136        #Extra flags for 64 bit architectures
     137        #extra_compile_args = ' -fPIC -m64' #Valid for gcc       
     138        extra_compile_args = ' -fPIC -tp amd64' #Valid for pgcc
     139    else:
     140        extra_compile_args = None
     141
     142
     143   
     144
    128145    setup(name="Pypar",
    129           version="1.5",
     146          version="1.9.2",
    130147          description="Pypar - Parallel Python",
    131148          long_description="Pypar - Parallel Python, no-frills MPI interface",
     
    141158                                   libraries=mpi_flags['libs'],
    142159                                   define_macros=mpi_flags['def_macros'],
    143                                    undef_macros=mpi_flags['undef_macros'])]
     160                                   undef_macros=mpi_flags['undef_macros'],
     161                                   extra_compile_args=extra_compile_args)]
    144162          )
Note: See TracChangeset for help on using the changeset viewer.