Skip to content

Commit

Permalink
ZQ:2080Ti C2 optimization code: add master readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoelv authored Jan 22, 2021
1 parent c78662b commit d3dc850
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
# C2 in 880s tested.
- this is special for 2080Ti, may not work with any other GPU cards. because different gpu have different cuda-cores and mem.
- some calculations with cpus change to parallel.
- change params special for 2080Ti. because it has 68 SMs and 64 SP per SM.
- we are going on with more optimizations. May 100s even more can be saved.
- Team work requests are welcome!

From ZQBC

# HOWTO
- get the code:

```bash
cd ../lotus_code_path && git clone https://github.com/jackoelv/bellperson.git && git checkout origin/2080Ti
```
- patch the filecoin-ffi submodule

```bash
cd ./lotus_code_path && git submodule update --init --recursive
cd ./lotus_code_path/extern/filecoin-ffi/rust/
vi Cargo.toml
```
> in the end of the file add patch code:
```rust
[patch.crates-io]
bellperson = { path = "../../../../bellperson" }
```
- then update cargo package

```bash
cd ./lotus_code_path/extern/filecoin-ffi/rust/
cargo update
cd ./lotus_code_path
RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean all
```

# DONATION

Jennifer suggested that I should have a donation wallet.

fils are welcome if you like.

my wallet addr:

> f1ki5mgbm4cyz43oamnbvv5bjrqdsvkphuxxs2h4a
# IMPORTANT NOTICE

> the branch is 2080Ti, not the master.
> enjoy it!
# bellperson [![Crates.io](https://img.shields.io/crates/v/bellperson.svg)](https://crates.io/crates/bellperson)

> This is a fork of the great [bellman](https://github.com/zkcrypto/bellman) library.
Expand Down

0 comments on commit d3dc850

Please sign in to comment.