Closed jarlebring closed 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.
You are right that c_cputime.jl
, matlab_cputime.jl
and julia_cputime.jl
can be deleted as far as I can tell.
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...)
The cpu-time simulations are a bit messy. The language simulations can be organized more like
c_cputime.jl
and theMakefile
gen_cputime_all_languages.jl
: Generatesc_cputime.jl
)run_julia_timing.jl
from a template filerun_matlab_timing.m
from a template fileMakefile
modesgen
: generates files for all languagesrun_matlab
: runs matlab cputimings: callsrun_julia_timing.jl
run_julia
: runs julia cputimingsrun_c
: runs all c-timing.run
: run all