Changeset 84e01d2 in sasmodels for sasmodels/model_test.py


Ignore:
Timestamp:
Feb 24, 2015 11:44:45 AM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
3a45c2c
Parents:
7621d5a
Message:

force test of opencl and dll, or fail if opencl is not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    r6137124 r84e01d2  
    145145        loaders = ['dll'] 
    146146        models = models[1:] 
     147    elif models and models[0] == 'opencl_and_dll': 
     148        if load_model_cl is None: 
     149            print >>sys.stderr, "opencl is not available" 
     150            sys.exit(1) 
     151        loaders = ['opencl', 'dll'] 
     152        models = models[1:] 
    147153    else: 
    148154        loaders = ['opencl', 'dll'] 
     
    151157        runner.run(suite(loaders, models)) 
    152158    else: 
    153         print >>sys.stderr, "usage: python -m sasmodels.model_test [opencl|dll] model1 model2 ..." 
     159        print >>sys.stderr, "usage: python -m sasmodels.model_test [opencl|dll|opencl_and_dll] model1 model2 ..." 
    154160        print >>sys.stderr, "if model1 is 'all', then all except the remaining models will be tested" 
    155161 
Note: See TracChangeset for help on using the changeset viewer.