glenco / lensed

forward reconstruction of lenses and sources from strong lensing observations
http://glenco.github.io/lensed/
MIT License
5 stars 3 forks source link

fix OpenCL compile errors due to INFINITY macro #261

Closed ntessore closed 7 years ago

ntessore commented 7 years ago

This PR fixes a compile error with Intel's Beignet drivers, where INFINITY is not a compile-time constant but defined in terms of the function __ocl_inff().

Semi-finite bounds are now defined in terms of FLT_MAX, which is guaranteed to be a compile-time constant.