Changeset 1662ebe in sasmodels for sasmodels/kerneldll.py


Ignore:
Timestamp:
May 2, 2018 3:02:29 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Children:
765d025
Parents:
6f91c91 (diff), 33969b6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r1ddb794 r1662ebe  
    123123    # add openmp support if not running on a mac 
    124124    if sys.platform != "darwin": 
    125         CC.append("-fopenmp") 
     125        # OpenMP seems to be broken on gcc 5.4.0 (ubuntu 16.04.9) 
     126        # Shut it off for all unix until we can investigate. 
     127        #CC.append("-fopenmp") 
     128        pass 
    126129    def compile_command(source, output): 
    127130        """unix compiler command""" 
     
    158161        return CC + [source, "-o", output, "-lm"] 
    159162 
    160 # Windows-specific solution 
    161 if os.name == 'nt': 
    162     # Assume the default location of module DLLs is in .sasmodels/compiled_models. 
    163     DLL_PATH = os.path.join(os.path.expanduser("~"), ".sasmodels", "compiled_models") 
    164     if not os.path.exists(DLL_PATH): 
    165         os.makedirs(DLL_PATH) 
    166 else: 
    167     # Set up the default path for compiled modules. 
    168     DLL_PATH = tempfile.gettempdir() 
     163# Assume the default location of module DLLs is in .sasmodels/compiled_models. 
     164DLL_PATH = os.path.join(os.path.expanduser("~"), ".sasmodels", "compiled_models") 
    169165 
    170166ALLOW_SINGLE_PRECISION_DLLS = True 
     
    234230 
    235231    Set *sasmodels.kerneldll.DLL_PATH* to the compiled dll output path. 
    236     The default is the system temporary directory. 
     232    The default is in ~/.sasmodels/compiled_models. 
    237233    """ 
    238234    if dtype == F16: 
     
    251247        need_recompile = dll_time < newest_source 
    252248    if need_recompile: 
     249        # Make sure the DLL path exists 
     250        if not os.path.exists(DLL_PATH): 
     251            os.makedirs(DLL_PATH) 
    253252        basename = splitext(os.path.basename(dll))[0] + "_" 
    254253        system_fd, filename = tempfile.mkstemp(suffix=".c", prefix=basename) 
Note: See TracChangeset for help on using the changeset viewer.