Giter Site home page Giter Site logo

wincerchan / solvanitycl Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 12.0 102 KB

GPU vanity address generator for Solana

Home Page: https://blog.itswincer.com/posts/generating-solana-vanity-addresses-using-opencl-en/

License: GNU General Public License v3.0

Python 5.13% C 94.60% Dockerfile 0.27%

solvanitycl's Introduction

Hi, I'm Wincer ๐Ÿ‘‹

I will learn anything that interests me.

Platform & Tools

Code & Skills

๐Ÿ“Š Weekly development breakdown

Rust          18 hrs 16 mins  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   73.41 %
C             1 hr 53 mins    โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   07.59 %
TypeScript    1 hr 35 mins    โ–ˆโ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   06.37 %
Elixir        58 mins         โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   03.94 %
JSON          55 mins         โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   03.73 %

solvanitycl's People

Contributors

kyee-rs avatar timonpeng avatar wincerchan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

solvanitycl's Issues

AMD Radeon RX 7600 + Windows not working

[INFO 2024-05-17 21:21:23,920] Searching Solana pubkey that starts with 'SoL' and ends with ''
[INFO 2024-05-17 21:21:23,993] Searching with 2 OpenCL devices
Traceback (most recent call last):
  File "C:\Users\Sayrix\Desktop\SolVanityCL-master\main.py", line 253, in <module>
    cli()
  File "C:\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\click\decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Sayrix\Desktop\SolVanityCL-master\main.py", line 206, in search_pubkey
    searcher = Searcher(
               ^^^^^^^^^
  File "C:\Users\Sayrix\Desktop\SolVanityCL-master\main.py", line 60, in __init__
    program = cl.Program(context, kernel_source).build()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\pyopencl\__init__.py", line 516, in build
    self._prg, was_cached = self._build_and_catch_errors(
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\pyopencl\__init__.py", line 564, in _build_and_catch_errors
    raise err
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE

Build on <pyopencl.Device 'gfx1036' on 'AMD Accelerated Parallel Processing' at 0x19efd0fdb70>:

C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:71:11: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_0(__generic fe h) {
          ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2271:23: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
                      ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2271:45: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
                                            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2491:23: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant1(__generic fe h, constant fe f, const __generic fe g) {
                      ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2491:60: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant1(__generic fe h, constant fe f, const __generic fe g) {
                                                           ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2712:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2712:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2712:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2933:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2933:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2933:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2977:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2977:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:2977:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:3021:41: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_tobytes(unsigned char *s, const __generic fe h) {
                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:3142:11: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_1(__generic fe h) {
          ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:3173:24: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov__constant(__generic fe f, constant fe g, unsigned int b) {
                       ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:3229:14: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov(__generic fe f, const __generic fe g, unsigned int b) {
             ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-76152e\input\CompileSource:3229:36: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov(__generic fe f, const __generic fe g, unsigned int b) {
                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).
===========================================================================
Build on <pyopencl.Device 'gfx1102' on 'AMD Accelerated Parallel Processing' at 0x19efd206f60>:

C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:71:11: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_0(__generic fe h) {
          ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2271:23: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
                      ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2271:45: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
                                            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2491:23: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant1(__generic fe h, constant fe f, const __generic fe g) {
                      ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2491:60: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul__contant1(__generic fe h, constant fe f, const __generic fe g) {
                                                           ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2712:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2712:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2712:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2933:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2933:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2933:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2977:13: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
            ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2977:35: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
                                  ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:2977:57: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
                                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:3021:41: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_tobytes(unsigned char *s, const __generic fe h) {
                                        ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:3142:11: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_1(__generic fe h) {
          ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:3173:24: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov__constant(__generic fe f, constant fe g, unsigned int b) {
                       ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:3229:14: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov(__generic fe f, const __generic fe g, unsigned int b) {
             ^
C:\Users\Sayrix\AppData\Local\Temp\comgr-506f0e\input\CompileSource:3229:36: error: OpenCL C version 1.2 does not support the '__generic' type qualifier
void fe_cmov(__generic fe f, const __generic fe g, unsigned int b) {
                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Error: Failed to compile source (from CL or HIP source to LLVM IR).

(options: -I C:\Python312\Lib\site-packages\pyopencl\cl)
(source saved as C:\Users\Sayrix\AppData\Local\Temp\tmputzjaj1j.cl)

Ubuntu 20.04 + RTX 4090 (rented container) - Unlucky or bug?

Hi, i've rented a docker container with Ubuntu 20.04 and a RTX 4090 and it works pretty well! 66 MH/s is HUGE but, i think that it's useless with what i want. I tried for more than 20 minutes to find an address that starts with 6 letter, so 586 and at 66 MH/s it should take about 576 seconds so ~11 minutes. So after 20 minutes i where thinking if it's me that is unlucky or a bug. So what i did is trying with 5 letters which should take about 9 seconds, but after easily 1 minute nothing found. I tried with 4 letters and it found it instantly, is it me that is unlucky or a bug ?

Have an error

Hi. I recieve this error.
Using on windows.

PS D:\SolVanityCL> python main.py search-pubkey --starts-with SoL
[INFO 2024-06-24 00:25:51,328] Searching Solana pubkey that starts with 'SoL' and ends with ''
[INFO 2024-06-24 00:25:53,790] Searching with 2 OpenCL devices
1 warning and 273 errors generated.
[ERROR 2024-06-24 00:25:54,257] clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE

Build on <pyopencl.Device 'NVIDIA GeForce RTX 3060 Laptop GPU' on 'NVIDIA CUDA' at 0x1965f3d2480>:

:3134:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:26: note: passing argument to parameter 'h' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3134:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:48: note: passing argument to parameter 'f' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3134:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3135:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:26: note: passing argument to parameter 'h' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3135:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:48: note: passing argument to parameter 'f' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3135:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:70: note: passing argument to parameter 'g' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3136:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul(r->Z, r->X, q->YplusX);
^~~~
:2717:26: note: passing argument to parameter 'h' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3136:16: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->Z, r->X, q->YplusX);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3136:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->Z, r->X, q->YplusX);
^~~~~~~~~
:2717:70: note: passing argument to parameter 'g' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3137:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul(r->Y, r->Y, q->YminusX);
^~~~
:2717:26: note: passing argument to parameter 'h' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3137:16: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->Y, r->Y, q->YminusX);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3137:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->Y, r->Y, q->YminusX);
^~~~~~~~~~
:2717:70: note: passing argument to parameter 'g' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3138:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul(r->T, q->T2d, p->T);
^~~~
:2717:26: note: passing argument to parameter 'h' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3138:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->T, q->T2d, p->T);
^~~~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3138:24: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->T, q->T2d, p->T);
^~~~
:2717:70: note: passing argument to parameter 'g' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3139:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul(r->X, p->Z, q->Z);
^~~~
:2717:26: note: passing argument to parameter 'h' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3139:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->X, p->Z, q->Z);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3139:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->X, p->Z, q->Z);
^~~~
:2717:70: note: passing argument to parameter 'g' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3140:14: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(t0, r->X, r->X);
^~~~
:2982:48: note: passing argument to parameter 'f' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3140:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(t0, r->X, r->X);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3141:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_sub(r->X, r->Z, r->Y);
^~~~
:2938:26: note: passing argument to parameter 'h' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3141:16: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->X, r->Z, r->Y);
^~~~
:2938:48: note: passing argument to parameter 'f' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3141:22: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->X, r->Z, r->Y);
^~~~
:2938:70: note: passing argument to parameter 'g' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3142:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_add(r->Y, r->Z, r->Y);
^~~~
:2982:26: note: passing argument to parameter 'h' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3142:16: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->Y, r->Z, r->Y);
^~~~
:2982:48: note: passing argument to parameter 'f' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3142:22: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->Y, r->Z, r->Y);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3143:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_add(r->Z, t0, r->T);
^~~~
:2982:26: note: passing argument to parameter 'h' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3143:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->Z, t0, r->T);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3144:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_sub(r->T, t0, r->T);
^~~~
:2938:26: note: passing argument to parameter 'h' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:3144:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->T, t0, r->T);
^~~~
:2938:70: note: passing argument to parameter 'g' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4276:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_add(r->YplusX, p->Y, p->X);
^~~~~~~~~
:2982:26: note: passing argument to parameter 'h' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4276:21: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->YplusX, p->Y, p->X);
^~~~
:2982:48: note: passing argument to parameter 'f' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4276:27: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->YplusX, p->Y, p->X);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4277:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_sub(r->YminusX, p->Y, p->X);
^~~~~~~~~~
:2938:26: note: passing argument to parameter 'h' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4277:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->YminusX, p->Y, p->X);
^~~~
:2938:48: note: passing argument to parameter 'f' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4277:28: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->YminusX, p->Y, p->X);
^~~~
:2938:70: note: passing argument to parameter 'g' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4278:11: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_copy(r->Z, p->Z);
^~~~
:3512:27: note: passing argument to parameter 'h' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4278:17: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_copy(r->Z, p->Z);
^~~~
:3512:49: note: passing argument to parameter 'f' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4279:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul(r->T2d, p->T, d2);
^~~~~~
:2717:26: note: passing argument to parameter 'h' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4279:18: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(r->T2d, p->T, d2);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4287:11: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_copy(r->X, p->X);
^~~~
:3512:27: note: passing argument to parameter 'h' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4287:17: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_copy(r->X, p->X);
^~~~
:3512:49: note: passing argument to parameter 'f' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4288:11: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_copy(r->Y, p->Y);
^~~~
:3512:27: note: passing argument to parameter 'h' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4288:17: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_copy(r->Y, p->Y);
^~~~
:3512:49: note: passing argument to parameter 'f' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4289:11: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_copy(r->Z, p->Z);
^~~~
:3512:27: note: passing argument to parameter 'h' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4289:17: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_copy(r->Z, p->Z);
^~~~
:3512:49: note: passing argument to parameter 'f' here
void fe_copy(__generic fe h, const __generic fe f) {
^
:4296:20: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_invert(recip, h->Z);
^~~~
:3605:53: note: passing argument to parameter 'z' here
void fe_invert(__generic fe out, const __generic fe z) {
^
:4297:13: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(x, h->X, recip);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4298:13: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul(y, h->Y, recip);
^~~~
:2717:48: note: passing argument to parameter 'f' here
void fe_mul(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4305:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:26: note: passing argument to parameter 'h' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4305:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:48: note: passing argument to parameter 'f' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4305:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_add(r->X, p->Y, p->X);
^~~~
:2982:70: note: passing argument to parameter 'g' here
void fe_add(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4306:10: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:26: note: passing argument to parameter 'h' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4306:16: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:48: note: passing argument to parameter 'f' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4306:22: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_sub(r->Y, p->Y, p->X);
^~~~
:2938:70: note: passing argument to parameter 'g' here
void fe_sub(__generic fe h, const __generic fe f, const __generic fe g) {
^
:4307:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul__contant2(r->Z, r->X, q->yplusx);
^~~~
:2276:36: note: passing argument to parameter 'h' here
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
^
:4307:26: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul__contant2(r->Z, r->X, q->yplusx);
^~~~
:2276:58: note: passing argument to parameter 'f' here
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
^
:4308:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul__contant2(r->Y, r->Y, q->yminusx);
^~~~
:2276:36: note: passing argument to parameter 'h' here
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
^
:4308:26: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul__contant2(r->Y, r->Y, q->yminusx);
^~~~
:2276:58: note: passing argument to parameter 'f' here
void fe_mul__contant2(__generic fe h, const __generic fe f, constant fe g) {
^
:4309:20: error: passing '__generic int32_t *' (aka '__generic int *') to parameter of type 'int32_t *' (aka 'int *') changes address space of pointer
fe_mul__contant1(r->T, q->xy2d, p->T);
^~~~
:2496:36: note: passing argument to parameter 'h' here
void fe_mul__contant1(__generic fe h, constant fe f, const __generic fe g) {
^
:4309:35: error: passing 'const __generic int32_t *' (aka 'const __generic int *') to parameter of type 'const int32_t *' (aka 'const int *') changes address space of pointer
fe_mul__contant1(r->T, q->xy2d, p->T);
^~~~

(......)

(options: -I C:\Users\ctrad\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyopencl\cl)
InvalidArraySize: Array size must be at least 1: [0 x i8] [Src: d:\qb\workspace\22235\source\llvm_source\llvm\projects\llvm-spirv\lib\spirv\spirvwriter.cpp:366 T->getArrayNumElements() >= 1 ]

Error : 'TypeError("cannot pickle '_ErrorRecord' object")'

I've rented GPU RTX 4090 in runpod, getting following issue

python main.py search-pubkey --starts-with sol
[INFO 2024-06-05 13:23:10,499] Searching Solana pubkey that starts with 'sol' and ends with ''
Traceback (most recent call last):
File "/SolVanityCL/main.py", line 326, in
cli()
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/SolVanityCL/main.py", line 279, in search_pubkey
gpu_counts = len(pool.apply(get_all_gpu_devices))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 360, in apply
return self.apply_async(func, args, kwds).get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 774, in get
raise self._value
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7fc197c165f0>'. Reason: 'TypeError("cannot pickle '_ErrorRecord' object")'

Any idea ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.