parsa-epfl / cloudsuite

A Benchmark Suite for Cloud Services.
http://cloudsuite.ch
Other
205 stars 121 forks source link

Instructions for compiling for RISC-V ISA (Data-caching) #439

Open vincejhan98 opened 9 months ago

vincejhan98 commented 9 months ago

Reading from the Workload Status Matrix, the Data-caching application supports running on RISC-V ISA.

We are currently trying to compile this program to RISC-V binary, particularly the server-side "memcached". However, I could not find any instructions on the READ.ME file on how to do so. I was also unable to find RISC-V options in the configure file or the Makefile.

Is there a workload pipeline on how to set the target machine/architecture to RISC-V to output a risc-v binary? Thank you!

xusine commented 9 months ago

Hello,

Yes. Other workloads are containerized, so you may want to build the docker image for RISC-V, instead of the binary itself. You can follow the tutorial on how to cross-compile docker image with buildx, or check our Github Action script.

Hope this is helpful!

Best,

vincejhan98 commented 9 months ago

Hi Cyan,

Thank you so much for your reply! I'm assuming that you're referring to this tutorial : https://github.com/parsa-epfl/cloudsuite/blob/main/docs/buildx.md

However, I had trouble figuring out how to open the specific docker file for riscv. I believe this is the container I hope to open: https://hub.docker.com/layers/cloudsuite/data-caching/server/images/sha256-53a8161de10aa991a3b90ff4aad10f8e904cc7957fca0c5210d6ed30194a3859?context=explore

I could only find the base-os for riscv and could not figure out how to run riscv for dc-server. Can you provide some step-by-step guides like the md file for data-caching? https://github.com/parsa-epfl/cloudsuite/blob/main/docs/benchmarks/data-caching.md

Thank you so much, it would be much appreciated.

xusine commented 9 months ago

Hello,

Sorry for my delay. In theory you should be able to follow the same document to run Data Caching on RISC-V machine: The image for RISC-V is ready and docker on RISC-V can figure it out and download the correct message.

There is no specific docker file for RISC-V. All architectures share the same docker file.