io - C MPI - Best way to automate multimple runs and keep logs and info. + Predifing global variables -


i want test couple of algorithms wrote , instead of doing repeating procedure, changing variables , write down outputs, want implement automation procedure. like script type can declare number of processors, variables , have formated output conclusions of multiple runs. format of output text format, wouldn't bother me if use later file creating 2 dimensional graph etc. ideas?

write shell script spawn combinations want test. have code produce output in such way can determine parameters used. send output file name lists parameters.

edit:

in program:

// ensure argc >= 4  int   arga = atoi(argv[1]); float argb = atof(argv[2]);  char* output_filename = argv[3]; 

in script:

for in 1 2 3     b in 0.1 0.2 0.3              mpirun a.out $a $b results_of_run_${a}_${b}.txt     done done 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -