Changeset 87fce00 in sasmodels


Ignore:
Timestamp:
Feb 18, 2015 3:18:00 AM (10 years ago)
Author:
ajj
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:
3271e20, c5b7d07, 3a45c2c
Parents:
c95dc908
Message:

Ensuring that compare will run even if opencl is not installed. Results display will be labelled "opencl" but is actually "ctypes". This is a temporary fix which needs properly integrating. Do not use -ctypes flag if you don't have opencl, you will be comparing model execution with itself.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • compare.py

    ra503bfd r87fce00  
    1010 
    1111from sasmodels.bumps_model import BumpsModel, plot_data, tic 
    12 from sasmodels import kernelcl, kerneldll 
     12try: from sasmodels import kernelcl 
     13except: from sasmodels import kerneldll as kernelcl 
     14from sasmodels import kerneldll 
    1315from sasmodels.convert import revert_model 
    1416 
  • sasmodels/kernelcl.py

    r250fa25 r87fce00  
    3030try: 
    3131    import pyopencl as cl 
    32 except ImportError,exc: 
     32except RuntimeError,exc: 
    3333    warnings.warn(str(exc)) 
    3434    raise RuntimeError("OpenCL not available") 
  • sasmodels/kerneldll.py

    rf786ff3 r87fce00  
    2323    # Can't find VCOMP90.DLL (don't know why), so remove openmp support from windows compiler build 
    2424    #COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
    25     COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /openmp /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
    26     #COMPILE = "gcc -shared -fPIC -std=c99 -fopenmp -O2 -Wall %(source)s -o %(output)s -lm" 
     25    #COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /openmp /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 
     26    COMPILE = "gcc -shared -fPIC -std=c99 -fopenmp -O2 -Wall %(source)s -o %(output)s -lm" 
    2727else: 
    2828    COMPILE = "cc -shared -fPIC -std=c99 -fopenmp -O2 -Wall %(source)s -o %(output)s -lm" 
Note: See TracChangeset for help on using the changeset viewer.