vanitygen-plusplus icon indicating copy to clipboard operation
vanitygen-plusplus copied to clipboard

Feature request: Support multiple GPUs (parallel GPU computation)

Open ottok opened this issue 2 years ago • 7 comments
trafficstars

This is a very cool tool, thanks for creating it!

While running it I noticed it only uses a single CPU. It would be cool if it supported running on multiple GPUs in parallel.

image

ottok avatar Sep 28 '23 19:09 ottok

I just tested https://github.com/1inch/profanity2 and it seems to run on all available GPUs by default. Perhaps you can take a peek at their implementation as reference.

image

ottok avatar Sep 28 '23 20:09 ottok

In multi-GPU scenarios, please specify the -D parameter.

10gic avatar Sep 29 '23 05:09 10gic

In multi-GPU scenarios, please specify the -D parameter.

I did and I can use it to select which GPU device to use (e.g. -D 0 or -D 1) but I did not find any way to tell it to use more than one GPU. Can you please share what syntax can achieve that?

ottok avatar Sep 29 '23 05:09 ottok

Usage:

$ ./oclvanitygen++
......
-D <devstr>   Use OpenCL device, identified by device string
              Form: <platform>:<devicenumber>[,<options>]
              Example: 0:0,grid=1024x1024
......

10gic avatar Sep 29 '23 06:09 10gic

-D parameter comes from the original vanitygen project. I don’t have a multi-GPU device at hand. Try specifying the -D parameter multiple times.

10gic avatar Sep 29 '23 06:09 10gic

-D parameter comes from the original vanitygen project. I don’t have a multi-GPU device at hand. Try specifying the -D parameter multiple times.

I tried. It will only use one device in all scenarios I tested, and if I do -D 0 -D 1 it picks ends up running only on device '1'.

ottok avatar Sep 29 '23 06:09 ottok

Usage:

-D <devstr>   Use OpenCL device, identified by device string
              Form: <platform>:<devicenumber>[,<options>]
              Example: 0:0,grid=1024x1024

For example, try ./oclvanitygen++ -v -D 0:0 -D 0:1 -D 0:2 1ove

10gic avatar Sep 29 '23 06:09 10gic