nano-vanity icon indicating copy to clipboard operation
nano-vanity copied to clipboard

Error when running in GPU mode with NVIDIA RTX 5070Ti | OclCore(ProgramBuild(BuildLog("<kernel>:1788:17: error: passing '__generic uint32_t

Open brunoaduarte opened this issue 5 months ago • 0 comments

(.venv) ubuntu@i9-10900:~/express$ python -c "import torch; print(torch.version.cuda, torch.cuda.get_device_name(0))"
12.8 NVIDIA GeForce RTX 5070 Ti

(.venv) ubuntu@i9-10900:~/express$ nvidia-smi
Wed Jul 16 15:29:18 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.57.08              Driver Version: 575.57.08      CUDA Version: 12.9     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5070 Ti     On  |   00000000:01:00.0 Off |                  N/A |
| 30%   40C    P1             56W /  300W |    2104MiB /  16303MiB |      9%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            5925      C   python3                                2094MiB |
+-----------------------------------------------------------------------------------------+

(.venv) ubuntu@i9-10900:~/express$ nano-vanity -t 0 -g --no-progress --limit 0 --simple-output nano_1 | cut -d' ' -f1 | xxd -r -p | dieharder -a -g stdin_input_raw
183 errors generated.

thread 'main' panicked at /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nano-vanity-0.4.14/src/main.rs:406:10:
called `Result::unwrap()` on an `Err` value: OclCore(ProgramBuild(BuildLog("

<kernel>:1788:17: error: passing '__generic uint32_t *' (aka '__generic unsigned int *') to parameter of type 'uint32_t *' (aka 'unsigned int *') changes address space of pointer
        curve25519_mul(r->x, p->x, p->t);
                       ^~~~
<kernel>:1258:28: note: passing argument to parameter 'out' here
curve25519_mul(bignum25519 out, const bignum25519 a, const bignum25519 b) {
                           ^
<kernel>:1788:23: error: passing 'const __generic uint32_t *' (aka 'const __generic unsigned int *') to parameter of type 'const uint32_t *' (aka 'const unsigned int *') changes address space of pointer
        curve25519_mul(r->x, p->x, p->t);
                             ^~~~
<kernel>:1258:51: note: passing argument to parameter 'a' here
curve25519_mul(bignum25519 out, const bignum25519 a, const bignum25519 b) {
                                                  ^
<kernel>:1788:29: error: passing 'const __generic uint32_t *' (aka 'const __generic unsigned int *') to parameter of type 'const uint32_t *' (aka 'const unsigned int *') changes address space of pointer
        curve25519_mul(r->x, p->x, p->t);
                                   ^~~~
<kernel>:1258:72: note: passing argument to parameter 'b' here
curve25519_mul(bignum25519 out, const bignum25519 a, const bignum25519 b) {
 
 .....

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
# stdin_input_raw(): Error: EOF

brunoaduarte avatar Jul 16 '25 18:07 brunoaduarte