Antonio Sanchez 78ee3d6261 Fix CUDA constexpr issues for numeric_limits.
Some CUDA/HIP constants fail on device with `constexpr` since they
internally rely on non-constexpr functions, e.g.
```
\#define CUDART_INF_F            __int_as_float(0x7f800000)
```
This fails for cuda-clang (though passes with nvcc). These constants are
currently used by `device::numeric_limits`.  For portability, we
need to remove `constexpr` from the affected functions.

For C++11 or higher, we should be able to rely on the `std::numeric_limits`
versions anyways, since the methods themselves are now `constexpr`, so
should be supported on device (clang/hipcc natively, nvcc with
`--expr-relaxed-constexpr`).
2021-03-30 18:01:27 +00:00
..
2016-01-27 22:48:40 +01:00
2021-03-15 18:42:04 +00:00
2017-11-10 14:11:22 +01:00
2017-11-27 22:11:57 +01:00
2015-10-30 12:02:52 +01:00
2016-01-27 22:48:40 +01:00
2016-01-27 22:48:40 +01:00