Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

CUDA implementation of Filecoin's PC2 operation

License

NotificationsYou must be signed in to change notification settings

supranational/pc2_cuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standalone C++ GPU implementation of Filecoin's PreCommit2 function

This repository is for demonstration purposes only. Feel free to modify as needed to support your specific setup.

Build and Running

1. ./build.sh2. ./run_pc2 -i <path> -o <path> -s <sector_size>-i Directory containing all the layer data files from PC1-o Output directory for tree c and tree r data-s Sector size, for example 2KiB or 32GiB

Various Notes

  • The pc2 performance for 32GB sectors is ~150 seconds (2.5 min) on a 3090 GPU.
  • Currently only CC sectors are supported. In order to work with non-CC sectors, the code needs to be updated to add the piece_file with the final layer prior to building tree r.
  • The test includes timed pinned memory allocation and deallocation. If used in an application, the pinning only needs to performed once then reused across many different sectors.
  • The test will check the tree c and tree r output data against the files in the input path. If run on non-CC sectors then tree c should match although tree r will fail.

About

CUDA implementation of Filecoin's PC2 operation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp