Changeset 8b8a03f in sasview


Ignore:
Timestamp:
Dec 21, 2011 9:38:38 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5c77050
Parents:
0e307de
Message:

small correction

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/setup.py

    rd9673d7a r8b8a03f  
    1414 
    1515# Options to enable OpenMP 
    16 copt =  {'msvc': ['/openmp'], 
    17          'mingw32' : ['-fopenmp'], 
    18          'unix' : ['-fopenmp']} 
    19 lopt =  {'msvc': ['/MANIFEST'], 
    20          'mingw32' : ['-fopenmp'], 
    21          'unix' : ['-lgomp']} 
     16if sys.argv[1] == "-nomp": 
     17    # Disable OpenMP 
     18    copt = {} 
     19    lopt = {} 
     20else: 
     21    print "openmp ENABLED" 
     22    copt =  {'msvc': ['/openmp'], 
     23             'mingw32' : ['-fopenmp'], 
     24             'unix' : ['-fopenmp']} 
     25    lopt =  {'msvc': ['/MANIFEST'], 
     26             'mingw32' : ['-fopenmp'], 
     27             'unix' : ['-lgomp']} 
    2228 
    2329class build_ext_subclass( build_ext ): 
     
    3036            is_64bits = False 
    3137        c = self.compiler.compiler_type 
     38 
    3239        print "Compiling with %s (64bit=%s)" % (c, str(is_64bits)) 
    33          
    3440        if not (sys.platform=='darwin' and not is_64bits): 
    3541            if copt.has_key(c): 
  • setup.py

    r0e307de r8b8a03f  
    3131 
    3232if sys.argv[1] == "-nomp": 
    33     # Disnable OpenMP 
     33    # Disable OpenMP 
    3434    copt = {} 
    3535    lopt = {} 
Note: See TracChangeset for help on using the changeset viewer.