Changeset 4de14584 in sasmodels


Ignore:
Timestamp:
Oct 12, 2018 9:07:47 PM (4 weeks ago)
Author:
pkienzle
Branches:
beta_approx, cuda-test, py3, ticket-1015-gpu-mem-error, ticket-1157, ticket-608-user-defined-weights, ticket_1156
Children:
8b31efa
Parents:
74e9b5f
Message:

allow sascomp to use cuda. Refs #1076.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rb0de252 r4de14584  
    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 
     
    725726        set_integration_size(model_info, ngauss) 
    726727 
    727     if dtype != "default" and not dtype.endswith('!') and not kernelcl.use_opencl(): 
     728    if (dtype != "default" and not dtype.endswith('!')  
     729            and not (kernelcl.use_opencl() or kernelcuda.use_cuda())): 
    728730        raise RuntimeError("OpenCL not available " + kernelcl.OPENCL_ERROR) 
    729731 
Note: See TracChangeset for help on using the changeset viewer.