Changeset 29464ba in sasmodels for sasmodels/kerneldll.py
- Timestamp:
- Apr 27, 2016 8:26:19 AM (8 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
- File:
-
- 1 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):
Note: See TracChangeset
for help on using the changeset viewer.