Skip to content
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

Broken Master Branch GPU Support #9

Open
kev1n opened this issue Apr 3, 2023 · 3 comments
Open

Broken Master Branch GPU Support #9

kev1n opened this issue Apr 3, 2023 · 3 comments

Comments

@kev1n
Copy link

kev1n commented Apr 3, 2023

I've been trying to mine an efficient contract address with create2crunch. I followed all the instructions found in: this blog post, with little luck.

I used the following configs:

  • nvidia/opencl
  • 3090s/4090s/3070s/etc
  • sudo apt install build-essential -y; curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; source "$HOME/.cargo/env"; git clone https://github.com/0age/create2crunch && cd create2crunch; sed -i 's/0x4/0x40/g' src/lib.rs
  • export FACTORY="0x0000000000ffe8b47b3e2130213b802212439497"; export CALLER={MY_CALLER_ADDRESS_INSERTED_HERE}; export INIT_CODE_HASH="0x640c5a7534c78cec935e63288b849fdfb379a57f064c1f013884d721830e8bc5"; export LEADING=5; export TOTAL=7; cargo run --release $FACTORY $CALLER $INIT_CODE_HASH 0 $LEADING $TOTAL

Here are some of the things I've tried:

  • Varying combos of GPUs and CPUs
  • One GPU vs multiple GPUs
  • Choosing different GPU targets (i.e. 0, 1, 2, 3,..)

But the program would just hang on this message indefinitely
Setting up experimental OpenCL miner using device {}...

None of these worked, so my next idea was to go through the commit history until I found one that worked.

Cloning Vectorized's create2crunch fork, I tried the following branches:

  • optimize: stalled
  • optfixes: worked (ran within 1-3s)
  • optfix2: worked (ran within 1-3s)
  • master: stalled

I'm not sure if this is just an issue when on vast.ai or a similar GPU renting platform, or if something I just did wrong like not waiting long enough, but I hope this helps.

@Vectorized

@MRHarrison
Copy link

MRHarrison commented May 1, 2023

I also have the same issue, but it is intermittent. It will sometimes work or sometimes be stuck with the message below. I'm also using vast.ai

Stuck on:

Setting up experimental OpenCL miner using device

@kev1n
Copy link
Author

kev1n commented May 1, 2023

Have you tried the other branches? They tended to fix the issue for me @MRHarrison

@MRHarrison
Copy link

@kev1n yeah I used optfix2 on vectorized clone. That works! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants