embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
252 stars 102 forks source link

Run benchmarks on custom system #6

Closed pagdot closed 5 months ago

pagdot commented 5 years ago

I'd like to run the benchmarks on a softcore cpu on a fpga. So I need to add a custo startup routine and run custom scripts to run it on the processor. Is this possible with the existing systems? Do I manually need to link the object files of the benchmarks with my link script and the startup file to generate the executable or are there better ways to run a custom benchmark?

jeremybennett commented 5 years ago

This should be possible, but probably harder than it needs to be. As noted in Issue #7, I'm working on Python replacements for the current build/run environment, which should make this all work smoothly. Feedback very welcome.

jeremybennett commented 4 years ago

@pagdot Does the new Python infrastructure make this easier for you?

sobuch commented 4 years ago

Hello, I am now able to run the benchmarks on SweRVolf (SweRV EH1) on nexys A7 FPGA. I am using OpenOCD to load programs into the memory and then reading the results from UART. Results therefore need to be measured and printed in functions from boardsupport.c. Besides that I created new run module with the three functions (get_target_args, build_benchmark_cmd, decode_results) defined. Only difficulty was that the current interface used by run modules is too constricting. In this use case it is not enough to run a single command. It would be more convenient for me to define some function to run benchmark directly instead of just passing a command to do so from the build_benchmark_cmd function.

PaoloS02 commented 5 months ago

I'm closing this has it has been inactive for a while now.