Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
*.cf
*.vcd
*.ghw
*.ghw

*.o
tests/dataset.s

tests/tb_blake2b
tests/tb_scratchpad
tests/tb_compile
tests/tb_exec
tests/tb_run
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Build the image (no source code baked into the image).
# docker build -t randomx-fpga .
#
# Run with your local repo mounted. Spawns a fish shell in the `tests/` directory.
# docker run -it -u $(id -u):$(id -g) -v $(pwd):/RandomX-FPGA randomx-fpga
#
# Inside the container, run `make` to build and run the tests.

# Important: Must use the gcc backend.
# LLVM crashes during the execution phase.
# Mcode complains of invalid signal uses.
FROM ghdl/ghdl:7.0.0-dev-gcc-ubuntu-24.04

ENV DEBIAN_FRONTEND=noninteractive

# Install required packages
RUN apt-get update && \
apt-get install -y \
ca-certificates \
make \
cmake \
build-essential \
git \
fish && \
rm -rf /var/lib/apt/lists/*

# Set working directory (your mounted repo will appear here)
WORKDIR /RandomX-FPGA/tests

# Start in fish shell
CMD ["fish"]
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,17 @@ https://github.com/MainSilent/py-RandomX

### Credit:

Blake2: https://github.com/christian-krieg/blake2
Blake2: https://github.com/christian-krieg/blake2

## Run with Docker

```bash
# Build the image (no source code baked into the image).
docker build -t randomx-fpga .

# Run with your local repo mounted. Spawns a fish shell in the `tests/` directory.
docker run -it -u $(id -u):$(id -g) -v $(pwd):/RandomX-FPGA randomx-fpga

# Inside the container, run `make` to build and run the tests.
make
```