Giter VIP home page Giter VIP logo

Comments (4)

dfaranha avatar dfaranha commented on July 19, 2024

Can you try increasing the stack size with ulimit -s unlimited? This particular demo is known to consume a lot of memory, something we are still working on to minimize.

from relic.

JiaweiWang-AdrianA avatar JiaweiWang-AdrianA commented on July 19, 2024

Thanks, it works!!!

However, I have another issue when I try to run it on Mac M1. I modified the x64-pbc-bls12-381.sh to arm64-pbc-bls12-381.sh:

#!/bin/sh
cmake -DARCH=A64 -DWSIZE=64 -DRAND=UDEV -DSHLIB=OFF -DSTBIN=ON -DTIMER=CYCLE -DCHECK=off -DVERBS=off -DARITH=gmp -DFP_PRIME=381 -DFP_METHD="INTEG;INTEG;INTEG;MONTY;LOWER;LOWER;SLIDE" -DCFLAGS="-O3 -funroll-loops -fomit-frame-pointer -mtune=native" -DFP_PMERS=off -DFP_QNRES=on -DFPX_METHD="INTEG;INTEG;LAZYR" -DEP_PLAIN=off -DEP_SUPER=off -DPP_METHD="LAZYR;OATEP" $1

When running 'make', the error occurred:

...
[ 81%] Linking C executable ../bin/test_bn
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...

from relic.

dfaranha avatar dfaranha commented on July 19, 2024

Hi again,

The preset x64-pbc-bls12-381.sh cannot be simply renamed to ARM64 because it is accelerated with x86_64 Assembly code. This code will simply not function under ARM64.

from relic.

JiaweiWang-AdrianA avatar JiaweiWang-AdrianA commented on July 19, 2024

Hi,
I rewrote the arm64-pbc-bls12-381.sh, and used it to build demo/public-stats successfully. It may be used as a reference for other MacBook M1 users.

#!/bin/sh
#-DSTBIN=ON
cmake -DARCH=A64 -DARITH=gmp -DWSIZE=64 -DRAND=UDEV -DSHLIB=OFF -DTIMER=CYCLE -DCHECK=off -DVERBS=off -DFP_PRIME=381 -DFP_METHD="INTEG;INTEG;INTEG;MONTY;LOWER;LOWER;SLIDE" -DCFLAGS="-O3 -funroll-loops -fomit-frame-pointer -mtune=native" -DFP_PMERS=off -DFP_QNRES=on -DFPX_METHD="INTEG;INTEG;LAZYR" -DEP_PLAIN=off -DEP_SUPER=off -DPP_METHD="LAZYR;OATEP" $1

from relic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.