Incorrect addresses being generated - last 6 chars
gitgoingnow opened this issue · 5 comments
PubAddress: 1testRBhYVHvVkmrMQFHtz7ga9Am7i89b
Priv (WIF): p2pkh:Kxqy4zu4Ar65H9tAEvwCBvSSkzRg4UQpJ9r6dT1Lb1UV7pVV6NRm
Priv (HEX): 0x307D3B4A3901DD6F3922EB026F8FD37E4749CED9627C715F75AE1BC9A73AC2B0
Correct address should be 1testRBhYVHvVkmrMQFHtz7ga9AmfBb9E
All the addresses being generated are incorrect.
Any ideas why this is? Running Cuda 11.7.r11.7 with a RTX-3090
Same issue reported on this thread
https://bitcointalk.org/index.php?topic=5112311.msg60815532#msg60815532
As I am running the same graphic card as OP in the mentioned thread I reproduced and can confirm the issue exists here, too. I tried the release as well as the master branch as suggested in the bitcointalk thread. First I edited the "Makefile" and replacing the line 34 by:
#CUDA = /usr/local/cuda
CUDA = /usr/local/cuda-11.7
to fit to the most current Cuda release running on my system. Then I compiled with:
make gpu=1 CCAP=86 all
System and driver details:
Ubuntu 22.04 (Jammy Jellyfish), Nvidia GeForce RTX 3070 Mobile / Max-Q graphic card with 8GB VRAM, Cuda 11.7 and Nvidia proprietary driver version 515.65.01 (still today the most recent version as shown here.
# ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000024DDsv00001028sd00000A8Dbc03sc00i00
vendor : NVIDIA Corporation
model : GA104M [GeForce RTX 3070 Mobile / Max-Q]
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-515-server - distro non-free
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-515 - third-party non-free
driver : nvidia-driver-510 - distro non-free recommended
driver : nvidia-driver-510-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
# nvidia-smi
Sun Aug 28 17:24:07 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| 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 ... On | 00000000:01:00.0 Off | N/A |
| N/A 40C P8 14W / N/A | 5MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2280 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------+
# dpkg -l |grep -i -E 'cuda|nvidia'
ii cuda 11.7.1-1 amd64 CUDA meta-package
ii cuda-11-7 11.7.1-1 amd64 CUDA 11.7 meta-package
ii cuda-cccl-11-7 11.7.91-1 amd64 CUDA CCCL
ii cuda-command-line-tools-11-7 11.7.1-1 amd64 CUDA command-line tools
ii cuda-compiler-11-7 11.7.1-1 amd64 CUDA compiler
ii cuda-cudart-11-7 11.7.99-1 amd64 CUDA Runtime native Libraries
ii cuda-cudart-dev-11-7 11.7.99-1 amd64 CUDA Runtime native dev links, headers
ii cuda-cuobjdump-11-7 11.7.91-1 amd64 CUDA cuobjdump
ii cuda-cupti-11-7 11.7.101-1 amd64 CUDA profiling tools runtime libs.
ii cuda-cupti-dev-11-7 11.7.101-1 amd64 CUDA profiling tools interface.
ii cuda-cuxxfilt-11-7 11.7.91-1 amd64 CUDA cuxxfilt
ii cuda-demo-suite-11-7 11.7.91-1 amd64 Demo suite for CUDA
ii cuda-documentation-11-7 11.7.91-1 amd64 CUDA documentation
ii cuda-driver-dev-11-7 11.7.99-1 amd64 CUDA Driver native dev stub library
ii cuda-drivers 515.65.01-1 amd64 CUDA Driver meta-package, branch-agnostic
ii cuda-drivers-515 515.65.01-1 amd64 CUDA Driver meta-package, branch-specific
ii cuda-gdb-11-7 11.7.91-1 amd64 CUDA-GDB
ii cuda-keyring 1.0-1 all GPG keyring for the CUDA repository
ii cuda-libraries-11-7 11.7.1-1 amd64 CUDA Libraries 11.7 meta-package
ii cuda-libraries-dev-11-7 11.7.1-1 amd64 CUDA Libraries 11.7 development meta-package
ii cuda-memcheck-11-7 11.7.91-1 amd64 CUDA-MEMCHECK
ii cuda-nsight-11-7 11.7.91-1 amd64 CUDA nsight
ii cuda-nsight-compute-11-7 11.7.1-1 amd64 NVIDIA Nsight Compute
ii cuda-nsight-systems-11-7 11.7.1-1 amd64 NVIDIA Nsight Systems
ii cuda-nvcc-11-7 11.7.99-1 amd64 CUDA nvcc
ii cuda-nvdisasm-11-7 11.7.91-1 amd64 CUDA disassembler
ii cuda-nvml-dev-11-7 11.7.91-1 amd64 NVML native dev links, headers
ii cuda-nvprof-11-7 11.7.101-1 amd64 CUDA Profiler tools
ii cuda-nvprune-11-7 11.7.91-1 amd64 CUDA nvprune
ii cuda-nvrtc-11-7 11.7.99-1 amd64 NVRTC native runtime libraries
ii cuda-nvrtc-dev-11-7 11.7.99-1 amd64 NVRTC native dev links, headers
ii cuda-nvtx-11-7 11.7.91-1 amd64 NVIDIA Tools Extension
ii cuda-nvvp-11-7 11.7.101-1 amd64 CUDA Profiler tools
ii cuda-runtime-11-7 11.7.1-1 amd64 CUDA Runtime 11.7 meta-package
ii cuda-sanitizer-11-7 11.7.91-1 amd64 CUDA Sanitizer
ii cuda-toolkit-11-7 11.7.1-1 amd64 CUDA Toolkit 11.7 meta-package
ii cuda-toolkit-11-7-config-common 11.7.99-1 all Common config package for CUDA Toolkit 11.7.
ii cuda-toolkit-11-config-common 11.7.99-1 all Common config package for CUDA Toolkit 11.
ii cuda-toolkit-config-common 11.7.99-1 all Common config package for CUDA Toolkit.
ii cuda-tools-11-7 11.7.1-1 amd64 CUDA Tools meta-package
ii cuda-visual-tools-11-7 11.7.1-1 amd64 CUDA visual tools
ii libcufile-11-7 1.3.1.18-1 amd64 Library for GPU Direct Storage with CUDA 11.7
ii libcusolver-11-7 11.4.0.1-1 amd64 CUDA solver native runtime libraries
ii libcusolver-dev-11-7 11.4.0.1-1 amd64 CUDA solver native dev links, headers
ii libnvidia-cfg1-515:amd64 515.65.01-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-515 515.65.01-0ubuntu1 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-510:amd64 510.85.02-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-515:amd64 515.65.01-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-compute-515:i386 515.65.01-0ubuntu1 i386 NVIDIA libcompute package
ii libnvidia-decode-515:amd64 515.65.01-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-515:i386 515.65.01-0ubuntu1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.9-1.1 amd64 Wayland EGL External Platform library -- shared library
ii libnvidia-encode-515:amd64 515.65.01-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-515:i386 515.65.01-0ubuntu1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-515:amd64 515.65.01-0ubuntu1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-515:amd64 515.65.01-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-515:i386 515.65.01-0ubuntu1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-515:amd64 515.65.01-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-515:i386 515.65.01-0ubuntu1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii nsight-compute-2022.2.1 2022.2.1.3-1 amd64 NVIDIA Nsight Compute
rc nvidia-compute-utils-510 510.85.02-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-515 515.65.01-0ubuntu1 amd64 NVIDIA compute utilities
rc nvidia-dkms-510 510.85.02-0ubuntu0.22.04.1 amd64 NVIDIA DKMS package
ii nvidia-dkms-515 515.65.01-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-515 515.65.01-0ubuntu1 amd64 NVIDIA driver metapackage
rc nvidia-kernel-common-510 510.85.02-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-common-515 515.65.01-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-515 515.65.01-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 515.65.01-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 515.65.01-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-515 515.65.01-0ubuntu1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-515 515.65.01-0ubuntu1 amd64 NVIDIA binary Xorg driver
Try to compile it with lower gcc version. Compiled with gcc 11 gave me the same errors, but compiled with gcc 9 works perfectly.
Does anyone have the binaries for linux? I see the windows release but I'm having trouble building for linux... GPU and CPU would be appreciated...
Visual Studio compiles without problem and executable produces correct results.
In Linux helped setting optimization flag -O2 to -O1 in Makefile and output becomes correct.
For cygwin64 on Windows the same setting optimization flag -O2 to -O1 and output becomes correct.
But in cygwin64 had to correct variable static Int _P; // Field characteristic in IntMod.cpp
to static Int Field_P; and all its occurences in file.
thanks @AlexCurl