BeamMW / beam

Beam: Scalable Confidential Cryptocurrency. Leading the way to Confidential DeFi
https://beam.mw
Apache License 2.0
698 stars 206 forks source link

Ubuntu 18.10: Unsupported Video Card - GTX 1070 #241

Closed frankcoderL closed 5 years ago

frankcoderL commented 5 years ago

Bug title Ubuntu 18.10: Unsupported Video Card - GTX 1070

Bug description I use one GTX 1070. The GTX 1070 videocard is not recognised by BeamWallet UI -> Unsupported Video Card

To Reproduce Steps to reproduce the behaviour: Open the wallet with GUI APP (testnet3 DEB package) Current behaviour Not allowing me use GPU for mining (CPU mining works)

Expected behaviour Be able to mine with a GPU listed as supported on beams download page

Platform and build

Other info Second issue, and maybe related with this problem? When I compile from source the GPU mining option is not visible in the GUI (both for Testnet3 source and current GIT). What could be the cause?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:        18.10
Codename:       cosmic

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.0/0000:02:00.0 ==
modalias : pci:v000010DEd00001B81sv00001043sd00008597bc03sc00i00
vendor   : NVIDIA Corporation
model    : GP104 [GeForce GTX 1070]
driver   : nvidia-driver-390 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

$ sudo apt-get install nvidia-driver-390 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nvidia-driver-390 is already the newest version (390.87-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$
ghost commented 5 years ago

You have to put add_definitions(-DBEAM_USE_GPU) to your CMakeLists.txt before building. Otherwise beam is compiled without a GPU support.

Does this work? Do you get any errors during building?

ziomik commented 5 years ago

I have the same video card and the same problem..

gingervik commented 5 years ago

Hi @frankcoderL @ziomik @wirtz1284 Testnet 4 is already relesed with external miner. Please, try to use it https://github.com/BeamMW/beam/releases/tag/testnet4_release beam.mw/downloads

for now Use GPU option is removed from UI

frankcoderL commented 5 years ago

Hi, @gingervik @ziomik @wirtz1284

Indeed the GPU in UI wallet was disabled on Testnet 4.

I was able to launch the CLI miner on GeForce GTX 1080 Ti. I will test GeForce GTX 1070 tomorrow. Thanks!

$ ./beamMiner --server 127.0.0.1:10002 --key 12345678
====================================
  BEAM Equihash 150/5 OpenCL miner  
====================================

Setup OpenCL devices:
=====================
Found device 0: GeForce GTX 1080 Ti
Memory check ok
Loading and compiling Beam OpenCL Kernel
Build sucessfull. 

Waiting for work from stratum:
==============================
Connecting to 127.0.0.1:10002
Connected to node. Starting TLS handshake.
TLS Handshake sucess
New work received with id 13 at difficulty 18686.8

Start mining:
=============
Performance: 10.87 sol/s 
Performance: 14.07 sol/s 
Performance: 12.80 sol/s 
New work received with id 14 at difficulty 18869.49
Performance: 12.33 sol/s 
Performance: 13.33 sol/s 
Performance: 13.00 sol/s 
Performance: 14.27 sol/s 
Performance: 11.27 sol/s 
Performance: 12.33 sol/s 
Performance: 12.07 sol/s 
...
$ nvidia-smi
Sun Dec 30 22:56:40 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87                 Driver Version: 390.87                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:07:00.0  On |                  N/A |
| 41%   74C    P2   197W / 250W |   4040MiB / 11177MiB |     99%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1571      G   /usr/lib/xorg/Xorg                            69MiB |
|    0      4850      C   ./beamMiner                                 3959MiB |
+-----------------------------------------------------------------------------+
$               
$ ubuntu-drivers devices                                                                                                     
== /sys/devices/pci0000:00/0000:00:03.2/0000:07:00.0 ==                                               
modalias : pci:v000010DEd00001B06sv00001043sd000085E5bc03sc00i00                                      
vendor   : NVIDIA Corporation                                                                         
model    : GP102 [GeForce GTX 1080 Ti]                                                                
driver   : nvidia-driver-390 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

$ 
gingervik commented 5 years ago

@frankcoderL can we close this issue or you still have any problems?

frankcoderL commented 5 years ago

Yes, I closed this issue.

Thanks!