Changeset 199d40d in sasmodels
- Timestamp:
- Feb 4, 2016 7:43:43 PM (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:
- caf768d
- Parents:
- 13ed84c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernelcl.py
rd18582e r199d40d 258 258 cpu = device 259 259 single = gpu if gpu is not None else cpu 260 double = gpu if has_type(gpu, np.dtype('double')) else cpu 261 single_context = cl.Context([single]) 262 double_context = cl.Context([double]) if single != double else single_context 263 return single_context, double_context 260 double = gpu if gpu is not None and has_type(gpu, np.dtype('double')) else cpu 261 262 if single == double: 263 return [cl.Context([single])] 264 else: 265 return [cl.Context([single]), cl.Context([double])] 264 266 265 267
Note: See TracChangeset
for help on using the changeset viewer.