Open nojansheybani opened 1 year ago
@f01dab1e can you check if this is an issue error occurs in our newer code, ie with --experimental-ssa enabled?
Assigning myself as I cannot assign f01dab1e
Operating system kills the process :]
❯ nargo prove --experimental-ssa
Killed
The triple loop here would mean loop unrolling would have to unroll 2,097,152 times. Plus an extra 16384 times for the second loop. We can look at memory usage but I'm not sure if this would even prove and verify in a reasonable time if that is fixed.
Aim
I am trying to implement 128x128 matrix multiplication, but I've had to modify it to be flattened due to Noir not supporting multi-dimensional arrays. My code works on smaller inputs, but once I move to 128x128 it breaks.
Expected behavior
I expect it to work as at does on smaller inputs, such as 10x10
Bug
Message: internal error: entered unreachable code: failed on standard_example__get_exact_circuit_size call Location: /home/runner/.cargo/git/checkouts/aztec_backend-a697fb631cbad807/2cb523d/barretenberg_wasm/src/composer.rs:114
To reproduce
nargo new matmult
Put the following in
main.nr
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install \ -y build-essential cmake git libgmp3-dev libprocps-dev libboost-all-dev libssl-dev libsodium-dev nano wget clang lld libomp-dev curl bash
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}"
RUN git clone https://github.com/noir-lang/noir.git
WORKDIR noir
RUN curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash
RUN cd /root/.nargo/bin/ && rm noirup && wget https://raw.githubusercontent.com/noir-lang/noirup/main/noirup && chmod +x noirup
ENV PATH="${PATH}:/root/.nargo/bin"
RUN noirup
RUN nargo new hello_world
COPY matmult/ matmult/
WORKDIR matmult
RUN nargo check
RUN nargo prove p
RUN nargo verify p