@davidharrishmc, @jeremybennett
I am trying to port OpenRISC to Embench. As of now I have ported to be able to successfully perform size benchmarks and next would be to add chips and boards for speed benchmarks. While porting size benchmarks, I encountered few issues with the tool and I wanted address them and get guidance.
My setup:
Host OS: Ubuntu 18.04.6 LTS 4.15.0.213-generic
OpenRISC toolchain version: 12.0.1 20220210. (or1k-elf is for bare metal use based on newlib library.)
Issue:
I added the runset for OpenRISC toolchain called or1k-elf-gcc to run_all.py as show below:
I am running the runset with --json-output commented as show above with the command ./run_all.py --or1k-elf-gcc. I added the or1k-elf-gcc argument to the argument parser and builder in run_all.py.
benchmark_size.py checks for output formatting option on benchmark_size.py line 430 and returns the appropriate strings.
When run_all.py checks the result 'res' of the benchmark_size.py process on line 1284, it prints "Warning: Not all benchmarks sized successfully", while in-fact all benchmarks were sized successfully when benchmark_size.py was run separately on the terminal with the output as shown:
Geometric mean 10.20
Geometric SD 2.42
Geometric range 20.47
All benchmarks sized successfully
Seems like benchmark_size.py line 430 does not return the string "All benchmarks sized successfully" in case of the --json-output argument, for run_all.py to check on the stdout and determine whether they were successful or not.
I wanted your guidance on then and I will PR a patch for this.
@davidharrishmc, @jeremybennett I am trying to port OpenRISC to Embench. As of now I have ported to be able to successfully perform size benchmarks and next would be to add chips and boards for speed benchmarks. While porting size benchmarks, I encountered few issues with the tool and I wanted address them and get guidance.
My setup: Host OS: Ubuntu 18.04.6 LTS 4.15.0.213-generic OpenRISC toolchain version: 12.0.1 20220210. (or1k-elf is for bare metal use based on newlib library.)
Issue:
I added the runset for OpenRISC toolchain called or1k-elf-gcc to run_all.py as show below:
I am running the runset with --json-output commented as show above with the command ./run_all.py --or1k-elf-gcc. I added the or1k-elf-gcc argument to the argument parser and builder in run_all.py. benchmark_size.py checks for output formatting option on benchmark_size.py line 430 and returns the appropriate strings. When run_all.py checks the result 'res' of the benchmark_size.py process on line 1284, it prints "Warning: Not all benchmarks sized successfully", while in-fact all benchmarks were sized successfully when benchmark_size.py was run separately on the terminal with the output as shown:
Seems like benchmark_size.py line 430 does not return the string "All benchmarks sized successfully" in case of the --json-output argument, for run_all.py to check on the stdout and determine whether they were successful or not. I wanted your guidance on then and I will PR a patch for this.