Changeset af1d68c in sasmodels
- Timestamp:
- Mar 13, 2015 4:07:12 PM (10 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:
- d9633b1
- Parents:
- aa4946b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernelcl.py
raa4946b raf1d68c 55 55 MAX_LOOPS = 2048 56 56 57 def _load_model(kernel_module, dtype="single"):58 """59 Load the OpenCL model defined by *kernel_module*.60 61 Access to the OpenCL device is delayed until the kernel is called62 so models can be defined without using too many resources.63 """64 raise DeprecationWarning65 source, info = generate.make(kernel_module)66 if callable(info.get('Iq', None)):67 return PyModel(info)68 ## for debugging, save source to a .cl file, edit it, and reload as model69 #open(info['name']+'.cl','w').write(source)70 #source = open(info['name']+'.cl','r').read()71 return GpuModel(source, info, np.dtype(dtype))72 57 73 58 ENV = None
Note: See TracChangeset
for help on using the changeset viewer.