Skip to content

Commit d440222

Browse files
authored
Update Readme.md
1 parent a572f07 commit d440222

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Readme.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ First, put the following in your `.bashrc` file:
2323
Then, install the ubuntu packages from the [riscv-tools](https://github.com/riscv/riscv-tools) guide, which at the time of this writing were:
2424

2525
sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
26+
27+
Additionally, I ran into some issues and had to install the following packages:
2628

29+
sudo apt-get install expat python babeltrace gettext
2730

2831
Then, `cd` into the riscv-tools directory and run the following build scripts:
2932

@@ -37,6 +40,7 @@ To make sure the RISC-V compiler with the LACore extension is working correctly,
3740

3841
First, change directories into `linalg-benchmarks/la_core_api`. Then run the following command:
3942

43+
mkdir out
4044
make test_api \
4145
test_data_movement_dp \
4246
test_data_execution_dp \
@@ -58,7 +62,13 @@ The `SCRATCH_SIZE=16` is a bad hack to pass parameters to the LACore extension w
5862

5963
## cross-compiling GSL for RISC-V
6064

61-
The next step is cross-compiling GNU Scientific Library for RISC-V. We need GSL in order to run the HPCC benchmarks on the RISC-V platform, since we use GSL to verify the correctness of the LACore results. First, download [GSL sources](https://www.gnu.org/software/gsl/). Then run the following:
65+
The next step is cross-compiling GNU Scientific Library for RISC-V. We need GSL in order to run the HPCC benchmarks on the RISC-V platform, since we use GSL to verify the correctness of the LACore results. First, download [GSL sources](https://www.gnu.org/software/gsl/). For example, this might work for you:
66+
67+
cd ~
68+
wget http://mirrors.syringanetworks.net/gnu/gsl/gsl-latest.tar.gz
69+
tar xzf gsl-latest.tar.gz
70+
71+
Then `cd` into the gsl directory and run the following:
6272

6373
./configure --host=riscv64-unknown-elf --prefix=$RISCV
6474
make
@@ -70,6 +80,7 @@ You should now have `libgsl.a` and `libgslcblas.a` in `$RISCV/lib`. Now we can l
7080

7181
Now we will cross-compile the modified HPCC benchmarks for the LACore to be run on the spike simulator. We will worry about gem5 after we can get the functional simulation of the benchmarks to pass. First change directories into `linalg-benchmarks/benchmarks`. Then run the following:
7282

83+
mkdir out
7384
make dgemm_la_core_sweep \
7485
dstream_la_core_sweep \
7586
dfft_la_core_sweep \

0 commit comments

Comments
 (0)