Changeset f786ff3 in sasmodels
- Timestamp:
- Feb 16, 2015 2:19:05 AM (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:
- 250fa25
- Parents:
- b3f6bc3
- Files:
-
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
compare.py
r87c722e rf786ff3 8 8 9 9 from sasmodels.bumps_model import BumpsModel, plot_data, tic 10 from sasmodels import gpu,dll10 from sasmodels import kernelcl, kerneldll 11 11 from sasmodels.convert import revert_model 12 12 … … 42 42 sasmodels = __import__('sasmodels.models.'+modelname) 43 43 module = getattr(sasmodels.models, modelname, None) 44 kernel = gpu.load_model(module, dtype=dtype)44 kernel = kernelcl.load_model(module, dtype=dtype) 45 45 return kernel 46 46 … … 48 48 sasmodels = __import__('sasmodels.models.'+modelname) 49 49 module = getattr(sasmodels.models, modelname, None) 50 kernel = dll.load_model(module, dtype=dtype)50 kernel = kerneldll.load_model(module, dtype=dtype) 51 51 return kernel 52 52 -
compare_many.py
r34756fd rf786ff3 5 5 import numpy as np 6 6 7 from sasmodels. gpuimport environment7 from sasmodels.kernelcl import environment 8 8 from compare import (MODELS, randomize_model, suppress_pd, eval_sasview, 9 9 eval_opencl, eval_ctypes, make_data) -
sasmodels/bumps_model.py
r87c722e rf786ff3 14 14 15 15 try: 16 from . gpuimport load_model as _loader16 from .kernelcl import load_model as _loader 17 17 except ImportError,exc: 18 18 import warnings 19 19 warnings.warn(str(exc)) 20 20 warnings.warn("OpenCL not available --- using ctypes instead") 21 from . dll import load_model as _loader21 from .kerneldll import load_model as _loader 22 22 23 23 def load_model(modelname, dtype='single'): -
sasmodels/kernelcl.py
rb3f6bc3 rf786ff3 29 29 30 30 from . import generate 31 from . pykernelimport PyInput, PyKernel31 from .kernelpy import PyInput, PyKernel 32 32 33 33 F64_DEFS = """\ -
sasmodels/kerneldll.py
rb3f6bc3 rf786ff3 11 11 12 12 from . import generate 13 from . pykernelimport PyInput, PyKernel13 from .kernelpy import PyInput, PyKernel 14 14 15 15 from .generate import F32, F64 -
sasmodels/sasview_model.py
r87c722e rf786ff3 25 25 26 26 try: 27 from . gpuimport load_model27 from .kernelcl import load_model 28 28 except ImportError,exc: 29 29 warnings.warn(str(exc)) 30 30 warnings.warn("OpenCL not available --- using ctypes instead") 31 from . dll import load_model31 from .kerneldll import load_model 32 32 33 33
Note: See TracChangeset
for help on using the changeset viewer.