Changeset 7fcdc9f in sasmodels for sasmodels/kernelcl.py


Ignore:
Timestamp:
Oct 16, 2016 2:38:03 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
248561a
Parents:
ff1fff5
Message:

OpenCL: use checksum to distinguish between kernels with the same name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    r6e5b2a7 r7fcdc9f  
    294294        # so we don't really need to cache things for ourselves.  I'll do so 
    295295        # anyway just to save some data munging time. 
    296         key = "%s-%s%s"%(name, dtype, ("-fast" if fast else "")) 
     296        tag = generate.tag_source(source) 
     297        key = "%s-%s-%s%s"%(name, dtype, tag, ("-fast" if fast else "")) 
    297298        # Check timestamp on program 
    298299        program, program_timestamp = self.compiled.get(key, (None, np.inf)) 
Note: See TracChangeset for help on using the changeset viewer.