Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run benchmark-speed #158

Open
richunorman-1 opened this issue Mar 7, 2022 · 1 comment
Open

Unable to run benchmark-speed #158

richunorman-1 opened this issue Mar 7, 2022 · 1 comment

Comments

@richunorman-1
Copy link

I have used the following configuration to run ./build.py

./build_all.py --arch riscv32 --chip generic --board ri5cyverilator --cc riscv64-unknown-elf-gcc --cflags="-c -O2 -ffunction-sections -march=rv64imac_zba_zbb_zbc_zbs_zicsr_zifencei -mabi=lp64" --ldflags="-Wl,-gc-sections" --user-libs="-lm"

and build sucessfully
build-2022-03-07-141006.log
Then I tried to find benchmark speed using the following.

./benchmark_speed.py --absolute --target-module run_gdbserver_sim --gdb-command riscv32-unknown-elf-gdb --gdbserver-command riscv32-gdbserver --gdbserver-target ri5cy

But I was not able to get the desired output.

Benchmark           Speed
---------           -----
aha-mont64               
crc32                    
cubic                    
edn                      
huffbench                
matmult-int              
md5sum                   
minver                   
nbody                    
nettle-aes               
nettle-sha256            
nsichneu                 
picojpeg                 
primecount               
qrduino                  
sglib-combined           
slre                     
st                       
statemate                
tarfind                  
ud                       
wikisort                 
ERROR: Failed to compute speed benchmarks

This is the obtained log.


Warning: Failed to find return code
Args to subprocess:
riscv32-unknown-elf-gdb -ex 'set confirm off' -ex 'set style enabled off' -ex 'set height 0' -ex 'file aha-mont64' -ex 'target remote | riscv32-gdbserver -c ri5cy --stdin' -ex 'stepi' -ex 'stepi' -ex 'load' -ex 'break start_trigger' -ex 'break stop_trigger' -ex 'break _exit' -ex 'jump *_start' -ex 'monitor cyclecount' -ex 'continue' -ex 'monitor cyclecount' -ex 'continue' -ex 'print $a0' -ex 'detach' -ex 'quit'
GNU gdb (GDB) 12.0.50.20211007-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from aha-mont64...
(No debugging symbols found in aha-mont64)
Remote debugging using | riscv32-gdbserver -c ri5cy --stdin
Breakpoint 1 at 0x10458
Breakpoint 2 at 0x1045c
Breakpoint 3 at 0x1070c

/bin/bash: riscv32-gdbserver: command not found
Remote communication error.  Target disconnected.: Connection reset by peer.
The program is not being run.
The program is not being run.
You can't do that when your target is `exec'
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
No registers.
The program is not being run.

Warning: Failed to find return code
Args to subprocess:
riscv32-unknown-elf-gdb -ex 'set confirm off' -ex 'set style enabled off' -ex 'set height 0' -ex 'file crc32' -ex 'target remote | riscv32-gdbserver -c ri5cy --stdin' -ex 'stepi' -ex 'stepi' -ex 'load' -ex 'break start_trigger' -ex 'break stop_trigger' -ex 'break _exit' -ex 'jump *_start' -ex 'monitor cyclecount' -ex 'continue' -ex 'monitor cyclecount' -ex 'continue' -ex 'print $a0' -ex 'detach' -ex 'quit'
GNU gdb (GDB) 12.0.50.20211007-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from crc32...
(No debugging symbols found in crc32)
Remote debugging using | riscv32-gdbserver -c ri5cy --stdin
Breakpoint 1 at 0x1023e
Breakpoint 2 at 0x10242
Breakpoint 3 at 0x10528

/bin/bash: riscv32-gdbserver: command not found
Remote communication error.  Target disconnected.: Connection reset by peer.
The program is not being run.
The program is not being run.
You can't do that when your target is `exec'
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
No registers.
The program is not being run.
......


speed-2022-03-07-141200.log

@hirooih
Copy link
Contributor

hirooih commented May 6, 2022

/bin/bash: riscv32-gdbserver: command not found

This means you have to install riscv32-gdbserver.

I tried to build riscv32-gdbserver, but it failed.
I open an issue. I hope someone will give us a clue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants