Changeset 07646b6 in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Oct 25, 2018 1:43:01 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
149eb53
Parents:
31fc4ad (diff), d5ce7fa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (10/25/18 12:41:48)
git-committer:
Paul Kienzle <pkienzle@…> (10/25/18 13:43:01)
Message:

Merge branch 'cuda-test' into beta_approx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rbe43e39 r07646b6  
    4141from . import kerneldll 
    4242from . import kernelcl 
     43from . import kernelcuda 
    4344from .data import plot_theory, empty_data1D, empty_data2D, load_data 
    4445from .direct_model import DirectModel, get_mesh 
     
    115116    === environment variables === 
    116117    -DSAS_MODELPATH=path sets directory containing custom models 
    117     -DSAS_OPENCL=vendor:device|none sets the target OpenCL device 
     118    -DSAS_OPENCL=vendor:device|cuda:device|none sets the target GPU device 
    118119    -DXDG_CACHE_HOME=~/.cache sets the pyopencl cache root (linux only) 
    119120    -DSAS_COMPILER=tinycc|msvc|mingw|unix sets the DLL compiler 
     
    724725        set_integration_size(model_info, ngauss) 
    725726 
    726     if dtype != "default" and not dtype.endswith('!') and not kernelcl.use_opencl(): 
     727    if (dtype != "default" and not dtype.endswith('!')  
     728            and not (kernelcl.use_opencl() or kernelcuda.use_cuda())): 
    727729        raise RuntimeError("OpenCL not available " + kernelcl.OPENCL_ERROR) 
    728730 
Note: See TracChangeset for help on using the changeset viewer.