-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PC1/PC2: sector size at compile time only? #23
Comments
It wold be cool to read out the sector size from the compiled library. I've opened #24 for that. |
We are looking into supporting more sector sizes as well runtime selection of sector size. |
Hi, we were using RegisteredSealProof in our Rust side. But I noticed that RegisteredSealProof only has half of all the sector sizes in it. Is there an alternative struct or parameter that we can use which has all the sector sizes? |
Let me first explain what the That In your current Rust code, you just use an arbitrary value for it, but ideally it should use the correct So now it depends on whether you only want to support only the sector sizes with the blessed parameter files that are part of the |
@vmx I pushed up a fork that should enable you to choose sector size at runtime. https://github.com/simonatsn/supra_seal. The changes are pretty broad reaching so it would be good if you can give it a try and let me know if you see any issues. If you build it with RUNTIME_SECTOR_SIZE defined it will include support for 2KB through 32GB. Without that define it builds 512MB and 32GB only. |
@simonatsn sorry for taking so long I finally found the time. I've build it with Let me know if you'd further testing from my side. But I'd say it's good. |
With #40 merged, this is now possible, hence closing this issue. |
Am I current that the sector size can only be set at compile time to a single size (currently only 512MiB and 32GiB). Are there any plans to support several sizes at run time?
This is mostly a question, I'm not blocked by having a single size only, it's just inconvenient for testing.
The text was updated successfully, but these errors were encountered: