Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: build: Add SupraSeal-PC2 binary script #11430

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented Nov 20, 2023

Proposed Changes

Add the SupraSeal-PC2 script made by @vmx 🙏 to the /scripts folder in Lotus, to make building the SupraSeal-PC2 binary easier and without needing SPDK checkout.

Testing

Running the script on a machine with the proper pre-requisites (which will be in the Lotus documentation)

cd scripts/
./supraseal-pc2.sh
Cloning into 'supra_seal'...
remote: Enumerating objects: 772, done.
remote: Counting objects: 100% (299/299), done.
remote: Compressing objects: 100% (139/139), done.
----
+ cc -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -march=native -D__ADX__ -mno-avx -c ./src/server.c
+ cc -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -march=native -D__ADX__ -mno-avx -c ./build/assembly.S
+ ar rc libblst.a assembly.o server.o

Which will give you the supra_seal folder with the pc2-binary ready for 32GiB and 512MiB-sectors

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

Add SupraSeal-PC2 scritpt
@rjan90 rjan90 requested a review from a team as a code owner November 20, 2023 14:08
@magik6k magik6k merged commit af53e96 into master Nov 21, 2023
@magik6k magik6k deleted the suprasealpc2-script branch November 21, 2023 16:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants