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

unable to mine 16 core and 32gb ram #1

Open
Solana0x opened this issue May 12, 2024 · 8 comments
Open

unable to mine 16 core and 32gb ram #1

Solana0x opened this issue May 12, 2024 · 8 comments

Comments

@Solana0x
Copy link

image
i have tried making changes also still 0 mine since last 10 mins can you check what could be the Bug?

@espoir1989
Copy link

only one core

@Solana0x
Copy link
Author

how to increase number of cores allocated?

@yejiayu
Copy link

yejiayu commented May 13, 2024

The nodejs process can only be used with a single core there is no way around it unless you use cluster https://nodejs.cn/api/cluster.html or a different programming language.

@akimabs
Copy link

akimabs commented May 13, 2024

can u fix that ?

@Solana0x
Copy link
Author

can we rewrite mining scrip in C++ @yejiayu can you share your scirpt ? where we can use GPU mininG? thansk :)

@yejiayu
Copy link

yejiayu commented May 14, 2024

can we rewrite mining scrip in C++ @yejiayu can you share your scirpt ? where we can use GPU mininG? thansk :)

hh, I don't have a script, but a simple way would be to rewrite the fn createHash function in C++ or Rust. Then, use a Unix socket(ICP) to enable communication between the Node.js and Rust programs, which involves minimal changes.

If you want to utilize multiple CPUs, you could use a coroutine pool to concurrently compute hashes by assigning a range of nonces to each coroutine. This would allow a single process to use multiple CPU cores

@maxwell522
Copy link

nodejs进程只能与单核一起使用,除非您使用集群,否则无法绕过它https:// nodejs.cn/api/cluster.html 或者不同的编程语言。

请问你的代码如何运行?可以编译.exe文件吗?

@yejiayu
Copy link

yejiayu commented May 14, 2024

请问你的代码如何运行?可以编译.exe文件吗?

可以,第一条shell下载编译,第二条改 ./cli/mineral-macos mine 改成你的系统

git clone https://github.com/yejiayu/mineral-app.git && cd ./mineral-app && git checkout -b wasmhash origin/wasmhash && npm i && npm run build:cli

WALLET=suiprivkey**** ./cli/mineral-macos mine

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

5 participants