Changeset 1662ebe in sasmodels for sasmodels/kerneldll.py
- Timestamp:
- May 2, 2018 3:02:29 PM (6 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kerneldll.py
r1ddb794 r1662ebe 123 123 # add openmp support if not running on a mac 124 124 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 126 129 def compile_command(source, output): 127 130 """unix compiler command""" … … 158 161 return CC + [source, "-o", output, "-lm"] 159 162 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. 164 DLL_PATH = os.path.join(os.path.expanduser("~"), ".sasmodels", "compiled_models") 169 165 170 166 ALLOW_SINGLE_PRECISION_DLLS = True … … 234 230 235 231 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. 237 233 """ 238 234 if dtype == F16: … … 251 247 need_recompile = dll_time < newest_source 252 248 if need_recompile: 249 # Make sure the DLL path exists 250 if not os.path.exists(DLL_PATH): 251 os.makedirs(DLL_PATH) 253 252 basename = splitext(os.path.basename(dll))[0] + "_" 254 253 system_fd, filename = tempfile.mkstemp(suffix=".c", prefix=basename)
Note: See TracChangeset
for help on using the changeset viewer.