Dear Bobby,

1) I use the original riscv-fs.py which is provided in the latest gem5 release. I run the gem5 once (./build/RISCV/gem5.fast -d ./HPCG_FS_results ./configs/example/gem5_library/riscv-fs.py) in order to download the riscv-bootloader-vmlinux-5.10 and riscv-disk-img. After this I mount the riscv-disk-img (sudo mount -o loop riscv-disk-img /mnt), put the xhpcg executable and I do the following changes in riscv-fs.py to boot the riscv-disk-img with executable:

image = CustomDiskImageResource(
    local_path = "/home/cossim/.cache/gem5/riscv-disk-img",
)

# Set the Full System workload.
board.set_kernel_disk_workload(
                   kernel=Resource("riscv-bootloader-vmlinux-5.10"),
                   disk_image=image,
)

Finally, in the gem5/src/python/gem5/components/boards/riscv_board.py I change the last line to "return ["console=ttyS0", "root={root_value}", "rw"]" in order to allow the write permissions in the image.


2) The HPCG benchmark after some iterations calculates if the results are valid or not valid. In the case of FS it gives invalid results. As I see from the results, one (at least) problem is that produces different results in each HPCG execution (with the same configuration).

Here is the HPCG output and riscv-fs.py (http://kition.mhl.tuc.gr:8000/d/68d82f3533/). You may reproduce the results in the video if you use the xhpcg executable (http://kition.mhl.tuc.gr:8000/f/4ca25fdd3c/)

Please help me in order to solve it!

Finally, I get invalid results in the HPL benchmark in FS mode too.

Best regards,
Nikos


Quoting Bobby Bruce <bbr...@ucdavis.edu>:

I'm going to need a bit more information to help:

1. In what way have you modified
./configs/example/gem5_library/riscv-fs.py? Can you attach the script here?
2. What error are you getting or in what way are the results invalid?

-
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Mon, Sep 19, 2022 at 1:43 PM Νικόλαος Ταμπουρατζής <
ntampourat...@ece.auth.gr> wrote:


Dear gem5 community,

I have successfully cross-compile the HPCG benchmark for RISCV (Serial
version, without MPI and OpenMP). While it working properly in gem5 SE
mode (./build/RISCV/gem5.fast -d ./HPCG_SE_results
./configs/example/se.py -c xhpcg --options '--nx=16 --ny=16 --nz=16
--npx=1 --npy=1 --npz=1 --rt=0.1'), I get invalid results in FS
simulation using "./build/RISCV/gem5.fast -d ./HPCG_FS_results
./configs/example/gem5_library/riscv-fs.py" (I mount the riscv image
and put it).

Can you help me please?

In addition, I used the RISCV Ubuntu image
(https://github.com/gem5/gem5-resources/tree/stable/src/riscv-ubuntu),
I installed the gcc compiler, compile it (through qemu) and I get
wrong results too.

Here is the Makefile which I use, the hpcg executable for RISCV
(xhpcg), and a video that shows the results
(http://kition.mhl.tuc.gr:8000/f/4ca25fdd3c/).

P.S. I use the latest gem5 version.

Thank you in advance! :)

Best regards,
Nikos
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org



_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to