Changeset def2c1b in sasmodels
- Timestamp:
- Jul 15, 2016 5:26:27 PM (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:
- b9c12fe5
- Parents:
- a738209
- Location:
- sasmodels
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
ra738209 rdef2c1b 850 850 engines.extend(['single', 'double']) 851 851 elif len(engines) == 1: 852 if engines[0][0] != 'double': 852 if engines[0][0] == 'double': 853 engines.append('single') 854 else: 853 855 engines.append('double') 854 else:855 engines.append('single')856 856 elif len(engines) > 2: 857 857 del engines[2:] -
sasmodels/core.py
r56b2687 rdef2c1b 139 139 return kernelpy.PyModel(model_info) 140 140 141 numpy_dtype, fast, platform = parse_dtype(model_info, dtype )141 numpy_dtype, fast, platform = parse_dtype(model_info, dtype, platform) 142 142 143 143 source = generate.make_source(model_info) … … 171 171 try: 172 172 kerneldll.DLL_PATH = path 173 dll = kerneldll.make_dll(source, model_info, dtype= dtype)173 dll = kerneldll.make_dll(source, model_info, dtype=numpy_dtype) 174 174 finally: 175 175 kerneldll.DLL_PATH = old_path -
sasmodels/kernel.py
ra738209 rdef2c1b 41 41 results = None # type: List[np.ndarray] 42 42 43 def __call__(self, call_details, weights,values, cutoff):43 def __call__(self, call_details, values, cutoff): 44 44 # type: (CallDetails, np.ndarray, np.ndarray, float) -> np.ndarray 45 45 raise NotImplementedError("need to implement __call__") -
sasmodels/kernelcl.py
ra738209 rdef2c1b 509 509 self.queue = env.get_queue(dtype) 510 510 511 # details is int32 data, padded to an 8 integer boundary512 size = ((max_pd*5 + npars*3 + 2 + 7)//8)*8513 511 self.result_b = cl.Buffer(self.queue.context, mf.READ_WRITE, 514 512 q_input.global_size[0] * dtype.itemsize) … … 532 530 # Call kernel and retrieve results 533 531 step = 100 532 #print("calling OpenCL") 534 533 for start in range(0, call_details.pd_prod, step): 535 534 stop = min(start+step, call_details.pd_prod) -
sasmodels/kerneldll.py
ra738209 rdef2c1b 357 357 self.real(cutoff), # cutoff 358 358 ] 359 #print("calling DLL") 359 360 self.kernel(*args) # type: ignore 360 361 return self.result[:-1]
Note: See TracChangeset
for help on using the changeset viewer.