Changeset 38ce0ab in sasmodels


Ignore:
Timestamp:
Aug 4, 2016 12:21:02 PM (8 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:
e1d6983
Parents:
b3796fa
Message:

spherical_sld: using cephes erf function, OpenCL works with Intel CPU on Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_header.c

    rb3796fa r38ce0ab  
    1414#    define SINCOS(angle,svar,cvar) do {const double _t_=angle; svar=sin(_t_);cvar=cos(_t_);} while (0) 
    1515#  endif 
     16   // Intel CPU on Mac gives strange values for erf(), so maybe don't use it 
     17   #define NEED_ERF 
    1618   // OpenCL only has type generic math 
    1719   #define expf exp 
    18    #define erff erf 
    19    #define erfcf erfc 
    20    // Intel CPU on Mac gives strange values for erf(), so maybe don't use it 
    21    //#define NEED_ERF 
     20   #ifndef NEED_ERF 
     21   #  define erff erf 
     22   #  define erfcf erfc 
     23   #endif 
    2224#else // !USE_OPENCL 
    2325// Use SAS_DOUBLE to force the use of double even for float kernels 
Note: See TracChangeset for help on using the changeset viewer.