matrixfunctions / GraphMatFun.jl

Computation graphs for matrix functions
MIT License
13 stars 0 forks source link

Warning messages in tests #74

Closed jarlebring closed 9 months ago

jarlebring commented 9 months ago

At the moment we get warnings like

WARNING: Method definition (::Type{Main.ValueOne})() in module Main at /tmp/jl_12jeXkrepU.jl:3 overwritten at /tmp/jl_n8jcPizyDg.jl:3.
WARNING: Method definition matfun_axpby!(Any, Any, Any, LinearAlgebra.UniformScaling{T} where T<:Number) in module Main at /tmp/jl_12jeXkrepU.jl:7 overwritten at /tmp/jl_n8jcPizyDg.jl:7.
WARNING: Method definition matfun_axpby!(Any, Any, Any, Any) in module Main at /tmp/jl_12jeXkrepU.jl:19 overwritten at /tmp/jl_n8jcPizyDg.jl:19.

This stems from https://github.com/matrixfunctions/GraphMatFun.jl/blob/6d9fac6baf0d39a356edc2eb1aa4e0086d675b7c/test/code_gen_test.jl#L24-L26

In every generated file we obtain some functions like matfun_axbpy!. They are the same in every generated piece of code.

One solution: add parameter to LangJulia such that generating such functions becomes optional.

jarlebring commented 9 months ago

It seems related to julia 1.10. No warnings in Julia 1.8.