Changeset 29464ba in sasmodels
- Timestamp:
- Apr 27, 2016 8:26:19 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 9ccf580
- Parents:
- a062d18
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kerneldll.py
r2a55a6f r29464ba 88 88 COMPILE = "cc -shared -fPIC -fopenmp -std=c99 -O2 -Wall %(source)s -o %(output)s -lm" 89 89 90 # Assume the default location of module DLLs is within the sasmodel directory.91 DLL_PATH = os.path.join(os.path.split(os.path.realpath( __file__))[0], "models", "dll")90 # Assume the default location of module DLLs is in top level /models dir. 91 DLL_PATH = os.path.join(os.path.split(os.path.realpath(sys.argv[0]))[0], "models") 92 92 93 93 ALLOW_SINGLE_PRECISION_DLLS = True … … 154 154 os.fdopen(fid, "w").write(source) 155 155 command = COMPILE%{"source":filename, "output":dll} 156 print("Compile command: "+command)157 156 status = os.system(command) 158 157 if status != 0 or not os.path.exists(dll): -
sasmodels/models/__init__.py
r1ca1fd9 r29464ba 53 53 for f in im_list: 54 54 data_files.append(('media/models_media/img', [f])) 55 56 # Add precompiled models dlls to the top level directory "models" 57 path_img = get_data_path(media=os.path.join("sasmodels","sasmodels","models","dll")) 58 is_list = findall(path_img) 59 for f in is_list: 60 if os.path.splitext(f)[1] == ".so": 61 data_files.append(('models', [f])) 62 55 63 return data_files 56 64
Note: See TracChangeset
for help on using the changeset viewer.