Using riscv-tests

563 views
Skip to first unread message

Adrian McMenamin

unread,
Sep 5, 2016, 10:18:10 AM9/5/16
to sw-...@groups.riscv.org
I have built these and the relevant benchmarks are there (and can be run under Spike) and code fragments which appear to correspond to the various TVM configurations exist under the ../isa directory - but is there a way to use all this? The documentation seems pretty sparse.

Colin Schmidt

unread,
Sep 5, 2016, 1:28:47 PM9/5/16
to Adrian McMenamin, RISC-V SW Dev
In the isa directory you can type make run to build all the tests and run all them on spike.

On Mon, Sep 5, 2016 at 7:18 AM, Adrian McMenamin <adrianm...@gmail.com> wrote:
I have built these and the relevant benchmarks are there (and can be run under Spike) and code fragments which appear to correspond to the various TVM configurations exist under the ../isa directory - but is there a way to use all this? The documentation seems pretty sparse.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CACwZE5Q17os%2BMgoZseU31yMVFJHUQ2Nuf3f3YmKxg%2BtQDM1Hww%40mail.gmail.com.

JO

unread,
Nov 9, 2016, 9:52:27 AM11/9/16
to RISC-V SW Dev


Hi

In the riscv-tests directory, i am able to successfuly run the following:


   1) autoconf                          
  2) ./configure --prefix=$RISCV/target
  3) make

However "make install" fails with "make: *** [install] Error 1".
The log from running "make install" is:

bash-4.1$ make install
mkdir -p benchmarks
/vl/edatools/tools/make/Linux/bin/make -C benchmarks -f /user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/benchmarks/Makefile bmarkdir=/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/benchmarks
make[1]: Entering directory `/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/benchmarks'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/benchmarks'
mkdir -p isa
/vl/edatools/tools/make/Linux/bin/make -C isa -f /user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/isa/Makefile isa_src_dir=/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/isa
make[1]: Entering directory `/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/isa'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/isa'
install -d /user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/target/share/riscv-tests/isa
install -d /user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/target/share/riscv-tests/benchmarks
install -p -m 644 isa/* /user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/target/share/riscv-tests/isa
install: omitting directory `isa/macros'
install: omitting directory `isa/rv32mi'
install: omitting directory `isa/rv32si'
install: omitting directory `isa/rv32ui'
install: omitting directory `isa/rv64mi'
install: omitting directory `isa/rv64si'
install: omitting directory `isa/rv64uf'
install: omitting directory `isa/rv64ui'
make: *** [install] Error 1

If i type "which make" i get "/vl/edatools/bin/make".

Therefore i don't think i am using the correct version of make/gmake

Which version of make/gmake should i be using to run "make install" ?


Thanks

JO

 
On Monday, September 5, 2016 at 6:28:47 PM UTC+1, Colin Schmidt wrote:
In the isa directory you can type make run to build all the tests and run all them on spike.
On Mon, Sep 5, 2016 at 7:18 AM, Adrian McMenamin <adrianm...@gmail.com> wrote:
I have built these and the relevant benchmarks are there (and can be run under Spike) and code fragments which appear to correspond to the various TVM configurations exist under the ../isa directory - but is there a way to use all this? The documentation seems pretty sparse.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.

Colin Schmidt

unread,
Nov 9, 2016, 2:27:55 PM11/9/16
to JO, RISC-V SW Dev
I usually run make install from inside a build directory like riscv-tests/build rather than at the root.

To answer your question though I use 

$ make --version
GNU Make 3.81


To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.

J Osmany

unread,
Nov 9, 2016, 2:31:19 PM11/9/16
to Colin Schmidt, JO, RISC-V SW Dev

Thanks for the pointer.


I will try the options you have listed.


Best Regards

J.Osmany



From: Colin Schmidt <col...@eecs.berkeley.edu>
Sent: 09 November 2016 19:27
To: JO
Cc: RISC-V SW Dev
Subject: Re: [sw-dev] Using riscv-tests
 
Reply all
Reply to author
Forward
0 new messages