Changeset 6cbdcd4 in sasmodels


Ignore:
Timestamp:
Mar 4, 2018 8:39:55 PM (4 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:
1ee5ac6
Parents:
d18d6dd
Message:

code cleanup: kernel_template.c/kernel_iq.cl are no longer used by generate

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r108e70e r6cbdcd4  
    214214 
    215215EXTERNAL_DIR = 'sasmodels-data' 
    216 DATA_PATH = get_data_path(EXTERNAL_DIR, 'kernel_template.c') 
     216DATA_PATH = get_data_path(EXTERNAL_DIR, 'kernel_iq.c') 
    217217MODEL_PATH = joinpath(DATA_PATH, 'models') 
    218218 
     
    389389    # TODO: fails DRY; templates appear two places. 
    390390    model_templates = [joinpath(DATA_PATH, filename) 
    391                        for filename in ('kernel_header.c', 'kernel_iq.cl')] 
     391                       for filename in ('kernel_header.c', 'kernel_iq.c')] 
    392392    source_files = (model_sources(model_info) 
    393393                    + model_templates 
  • sasmodels/kernelcl.py

    rb4272a2 r6cbdcd4  
    208208    Build a model to run on the gpu. 
    209209 
    210     Returns the compiled program and its type.  The returned type will 
    211     be float32 even if the desired type is float64 if any of the 
    212     devices in the context do not support the cl_khr_fp64 extension. 
     210    Returns the compiled program and its type. 
     211 
     212    Raises an error if the desired precision is not available. 
    213213    """ 
    214214    dtype = np.dtype(dtype) 
Note: See TracChangeset for help on using the changeset viewer.