Changeset 8698a0d in sasmodels for sasmodels/compare.py
- Timestamp:
- Oct 17, 2017 9:53:01 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 32f87a5
- Parents:
- becded3
- git-author:
- Paul Kienzle <pkienzle@…> (10/17/17 16:23:09)
- git-committer:
- Paul Kienzle <pkienzle@…> (10/17/17 21:53:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rb76191e r8698a0d 91 91 92 92 === precision options === 93 - calc=default uses the default calcution precision93 -engine=default uses the default calcution precision 94 94 -single/-double/-half/-fast sets an OpenCL calculation engine 95 95 -single!/-double!/-quad! sets an OpenMP calculation engine … … 110 110 vary from 64-bit to 128-bit, with 80-bit floats being common (1e-19 precision). 111 111 On unix and mac you may need single quotes around the DLL computation 112 engines, such as - calc='single!,double!' since !, is treated as a history112 engines, such as -engine='single!,double!' since !, is treated as a history 113 113 expansion request in the shell. 114 114 … … 122 122 123 123 # compare single and double precision calculation for a barbell 124 sascomp barbell - calc=single,double124 sascomp barbell -engine=single,double 125 125 126 126 # generate 10 random lorentz models, with seed=27 … … 131 131 132 132 # model timing test requires multiple evals to perform the estimate 133 sascomp pringle - calc=single,double -timing=100,100 -noplot133 sascomp pringle -engine=single,double -timing=100,100 -noplot 134 134 """ 135 135 … … 1017 1017 1018 1018 # Precision options 1019 ' calc=',1019 'engine=', 1020 1020 'half', 'fast', 'single', 'double', 'single!', 'double!', 'quad!', 1021 1021 'sasview', # TODO: remove sasview 3.x support … … 1167 1167 elif arg.startswith('-title='): opts['title'] = arg[7:] 1168 1168 elif arg.startswith('-data='): opts['datafile'] = arg[6:] 1169 elif arg.startswith('- calc='): opts['engine'] = arg[6:]1169 elif arg.startswith('-engine='): opts['engine'] = arg[8:] 1170 1170 elif arg.startswith('-neval='): opts['evals'] = arg[7:] 1171 1171 elif arg == '-random': opts['seed'] = np.random.randint(1000000)
Note: See TracChangeset
for help on using the changeset viewer.