matrixfunctions / GraphMatFun.jl

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

Restructure cpu-time simulations #26

Closed jarlebring closed 3 years ago

jarlebring commented 3 years ago

The cpu-time simulations are a bit messy. The language simulations can be organized more like c_cputime.jl and the Makefile

Makefile modes

mfasi commented 3 years ago

I added the target to the Makefile and made some minor modifications. As far as I can tell, gen_cputime_all_languages.jl now also generates the c-files thus gen_cputime_all_languages.jl can probably be deleted.

jarlebring commented 3 years ago

You are right that c_cputime.jl, matlab_cputime.jl and julia_cputime.jl can be deleted as far as I can tell.

jarlebring commented 3 years ago

For consistency, I think it would be better if the "glue code" generation for c could also be done in gen_cputime_all_lang.jl rather than sed-calls in the makefile. It can be a function like gen_main_c(). (I'm very busy this week so if someone else wants to give it a shot...)