ApproxFun.jl
ApproxFun.jl copied to clipboard
BaseBenchmarks floatexp test generates DomainError with ApproxFun
I encountered a very peculiar problem, which I also reported at https://github.com/JuliaCI/BaseBenchmarks.jl/issues/253.
If I run some benchmark tests provided by BaseBenchmarks.jl and if I also run using ApproxFun, I get the following DomainError:
using ApproxFun, BenchmarkTools, BaseBenchmarks
BaseBenchmarks.load!("scalar")
results = run(BaseBenchmarks.SUITE["scalar"]["floatexp"]; verbose = true)
...
(22/55) benchmarking ("exponent", "subnorm", "Float32")...
ERROR: DomainError with 0.0:
Cannot be subnormal converted to 0.
In the above lines, if I just do using BenchmarkTools, BaseBenchmarks, this error does not occur. So far, I haven’t encountered the same problem with the packages I typically use other than ApproxFun. I am wondering where this error or conflict occur and how one can fix this problem. I tested this on macOS, Windows 10, and Ubutu/Linux machines, and got exactly the same error.
Thanks for your help!