GPU miner for TON

Overview

"Soft" Pull Request rules

  • Thou shall not merge your own PRs, at least one person should review the PR and merge it (4-eyes rule)
  • Thou shall make sure that workflows are cleanly completed for your PR before considering merge

Workflows responsibility

If a CI workflow fails not because of your changes but workflow issues, try to fix it yourself or contact one of the persons listed below via Telegram messenger:

  • C/C++ CI (ccpp-linux.yml): TBD
  • C/C++ CI Win64 Compile (ccpp-win64.yml): TBD
Comments
  • opencl: a failure with amd rocm

    opencl: a failure with amd rocm

    /usr/bin/ton/crypto/pow-miner-opencl
    OpenCL platforms count: 1
    Error -1 executing clGetDeviceIDs(platforms_[p], CL_DEVICE_TYPE_ALL, 0, NULL, &device_count_) on /usr/src/pow-miner-gpu/crypto/util/opencl/opencl.cpp:54 (device not found). Aborting.
    Аварийный останов (стек памяти сброшен на диск)
    exit status: 134
    

    Line opencl.cpp:54 is this (I patched the sources insignificantly): CL_WRAPPER(clGetDeviceIDs(platforms_[p], CL_DEVICE_TYPE_ALL, 0, NULL, &device_count_));

    Let's try fixing this, I'm an sw dev, too.

    rocm version:

    ls -l /etc/alternatives/rocm
    lrwxrwxrwx 1 root root 15 2021-10-20 15:39:23 +08 nanoseconds:374296976 ADC /etc/alternatives/rocm -> /opt/rocm-4.3.0
    

    rocm installed pkgs:

    aptitude search rocm|grep "^i "
    i A rocm-clang-ocl - OpenCL compilation with clang compiler.
    i A rocm-cmake - rocm-cmake built using CMake
    i A rocm-dbgapi - Library to provide AMD GPU debugger API
    i A rocm-debug-agent - Radeon Open Compute Debug Agent (ROCdebug-agent)
    i A rocm-dev - Radeon Open Compute (ROCm) Runtime software stack
    i A rocm-device-libs - Radeon Open Compute - device libraries
    i  rocm-dkms - Radeon Open Compute (ROCm) Runtime software stack
    i A rocm-gdb - ROCgdb
    i A rocm-opencl - OpenCL: Open Computing Language on ROCclr
    i A rocm-opencl-dev - OpenCL: Open Computing Language on ROCclr
    i A rocm-smi-lib - AMD System Management libraries
    i A rocm-utils - Radeon Open Compute (ROCm) Runtime software stack
    i A rocminfo - Radeon Open Compute (ROCm) Runtime rocminfo tool
    

    My GPU is a 480:

    clinfo -v
    Number of platforms:				 1
      Platform Profile:				 FULL_PROFILE
      Platform Version:				 OpenCL 2.0 AMD-APP (3305.0)
      Platform Name:				 AMD Accelerated Parallel Processing
      Platform Vendor:				 Advanced Micro Devices, Inc.
      Platform Extensions:				 cl_khr_icd cl_amd_event_callback 
    
    
      Platform Name:				 AMD Accelerated Parallel Processing
    Number of devices:				 1
      Device Type:					 CL_DEVICE_TYPE_GPU
      Vendor ID:					 1002h
      Board name:					 Ellesmere [Radeon RX 470/480/570/570X/580/580X]
    ...
    

    git log|head -1 commit 2269a332e37fc4e27b8a7ca00337cae1e4922a25

    patch I did:

    git diff
    diff --git a/crypto/util/opencl/opencl.cpp b/crypto/util/opencl/opencl.cpp
    index f04303d..047cf5d 100644
    --- a/crypto/util/opencl/opencl.cpp
    +++ b/crypto/util/opencl/opencl.cpp
    @@ -9,6 +9,15 @@
     #include <CL/cl.h>
     #endif
     
    +// for std::cerr
    +#include <iostream>
    +
    +// for std::endl
    +#include <ostream>
    +
    +// for abort
    +#include <stdlib.h>
    +
     namespace opencl {
     
     void OpenCL::load_source(const char *filename) {
    @@ -35,6 +44,7 @@ void OpenCL::set_source(unsigned char *source, unsigned int length) {
     void OpenCL::print_devices() {
       // platform
       CL_WRAPPER(clGetPlatformIDs(0, NULL, &platform_count_));
    +  std::cerr << "OpenCL platforms count: " << platform_count_ << std::endl;
       platforms_ = (cl_platform_id *)malloc(platform_count_ * sizeof(cl_platform_id));
       CL_WRAPPER(clGetPlatformIDs(platform_count_, platforms_, NULL));
     
    diff --git a/crypto/util/opencl/opencl_helper.h b/crypto/util/opencl/opencl_helper.h
    index 890140d..1ae3163 100644
    --- a/crypto/util/opencl/opencl_helper.h
    +++ b/crypto/util/opencl/opencl_helper.h
    @@ -19,7 +19,7 @@
         { \
             cl_int err = FUNC; \
             if (err != CL_SUCCESS) { \
    -            fprintf(stderr, "Error %d executing %s on %s:%d (%s)\n", \
    +            fprintf(stderr, "Error %d executing %s on %s:%d (%s). Aborting.\n", \
                     err, #FUNC, __FILE__, __LINE__, cl_error_to_str(err)); \
                 abort(); \
             }; \
    diff --git a/storage/TorrentHeader.hpp b/storage/TorrentHeader.hpp
    index 2b84ccb..51a273f 100644
    --- a/storage/TorrentHeader.hpp
    +++ b/storage/TorrentHeader.hpp
    @@ -78,4 +78,7 @@ void TorrentHeader::parse(ParserT &parser) {
       }
       names = parser.template fetch_string_raw<std::string>(tot_names_size);
     }
    +
     }  // namespace ton
    +
    +template void ton::TorrentHeader::store<td::TlStorerCalcLength>(td::TlStorerCalcLength&) const;
    

    OS:

    $ lsb_release -dc
    Description:	Ubuntu 18.04.6 LTS
    Codename:	bionic
    $ uname -a
    Linux host1 5.4.0-89-generic #100~18.04.1-Ubuntu SMP Wed Sep 29 10:59:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    
    opened by ANANTASHESHALOKAGREENTARAEGPTRANSHOLON 13
  • Win7_x64 sendfile throws an error and an exception

    Win7_x64 sendfile throws an error and an exception

    Unhandled Exception [5568] tonlib-cuda-cli.exe Last release of Windows tonlib-cuda-cli.exe crashes after syncronization while sending the found solution. Lite-client.exe crashing while command "sendfile mined.boc". pow-miner-cuda.exe working well. All this is only for Windows 7 64, I did not check the other.

    opened by dimwap 10
  • New fixes added! Please review!

    New fixes added! Please review!

    Hello!

    I do some sort of fixes that you advised earlier.

    I am currenty trying to compile cuda version! But i have some question about abseil third party lib to you!

    This error is quite annoying.

    " D:/a/pow-miner-gpu/pow-miner-gpu/third-party/abseil-cpp\absl/types/internal/variant.h(1042): error : parameter pack "H" was referenced but not expanded "

    On my workstation i had to comment this lines earlier. After that i could compile the project in Microsoft Visual Studio. But this way of solving problems is not good i think.

    I can not understand why and from where it comes.

    Thanks for any help or advises!

    Best wishes, Drew

    opened by sunnyhellious 9
  • Optimal Number of GPU Threads for cuda

    Optimal Number of GPU Threads for cuda

    Hi! I'm trying to calculate GPU Threads as described /crypto/util/pow-miner-howto.md crypto/pow-miner worked well

    in my PC has 3D controller: NVIDIA and when I run crypto/pow-miner-cuda I get:

    GPU #0: SM 7.5 Tesla T4 [ expected required hashes for success: 3921112346559999 ] not found!

    what could be the problem? How can I get in debug mode?

    opened by ehadiev 8
  • Why my instant speed always 0? Mhash/s?

    Why my instant speed always 0? Mhash/s?

    image

    How this speed is calculate? Is it real to win for me with zero instant speed?

    PS I understand that with my average hashrate I must mine about ten years to get 100 tons.

    opened by baseoleph 6
  • File global.config.json can't be opened for reading

    File global.config.json can't be opened for reading

    ton/tonlib-cuda-cli -v 3 -C global.config.json -e 'pminer start kf8gf1PQy4u2kURl-Gz4LbS29eaN4sVdrVQkPO-JL80VhOe6 EQDf7DdGn96UXKn3o_kI2j7FYMPhhMhb2pZrYcsq9mqddfP5 0 8 0'

    image

    tried to change the permissions to the file and directory in different combinations and for different groups - it does not work

    image

    opened by mx5team 6
  • processes of synchronization & completion

    processes of synchronization & completion

    I have the same problem:

    • I do not see the processes of synchronization;
    • I do not see the completion;
    • I do not see the marked option on the screen; Is it OK? Thanks; Screenshot_9
    opened by aavvaavv 5
  • Сид блока, сид уникального майнера

    Сид блока, сид уникального майнера

    [ 2][t 1][2021-11-25 05:02:36.123004597][tonlib-cli.cpp:929][!PowMiner] pminer: got new options from kf-FV4QTxLl-7Ct3E6MqOtMt-RGXMxi27g4I645lw6MTWraV, seed=227210298917947041612242331227423346968, complexity=45700534310325966151345979463214036389564407143633435885602596 Подскажите , seed=227210298917947041612242331227423346968 это ведь сид блока ,а не уникальный сид для майнера.А как формируется случайность для каждого клиента? Другими словами какие уникальные в данные которые мы считаем ( майним ) у кажого экземпляра клиента. Если ещё понятнее : В файле credits.cu td::int64 i = 0; for (; i < options.max_iterations;) { Мы начинаем от нуля искать sha256 в блоке, если найдем такой sha256 который меньше сложности, то выдаем это найденное рандомное число как ответ серверу. В этом и состоит весь майнинг. Но если все майнеры начинают от нуля искать , получается что награду получит самый быстрый. ( но это ведь не так ) Помогите разобраться. 2. Как узнать сколько на данный момент роздано гиверами монеток? 3. Правильно ли я понимаю, что все данные хранятся на сервере гивера и если с сервером что-либо неприятное происходит( потеря всех данных без бэкапов, чисто теоретически), то наступает катастрофа для всех соответствующих владельцев кошельков? 4. Майнинг будет продолжаться вечно или пока текущие 10 гиверов производят раздачу? Что в планах. 5. Влияют ли видеокарты LHR - low hash rate от nvidia ( типа с защитой от майнинга ) на текущий алгоритм майнинга, или нет? Магазины продают видеокарты, а LHR забывают указывать и сдать такую видеокарту потом проблематично. 6. Укажите на сайте ton.org в разделе майнинга ожидаемое время удвоение сложности сети, это очень полезная информация для новеньких. По моим прогнозам сложность сети удвоится через 10 суток и майнить будет в 2 раза невыгоднее чем сейчас. 7. Возможно-ли в Мск купить тон без посредников, с учетом того что торгуется он на биржах сейчас плохо. (знакомые интересуются) 8. Я последнее время изучаю этот проект(сутками не сплю), потому что вижу перспективу в Ваших проектах(мне нравится идея, код и юзер-френдли интерфейсы), Вы почему то называете это скамом. Своим искренним интересом, тратой своего времени, я невольно оказываю поддержку Вашему проекту. Так и Вы цените моё время, пожалуйста, я не мошенник. Не буду Вам рассказывать как живется инвалидам на мизерную пенсию в России, но объединяет нас с Вами одно дело - это любовь к программированию. 9. Опережая Вашу идею поделюсь одной мыслью. Здорово было бы, чтобы клиенты не считали бесполезно sha256, а решали какую-либо сложную математическую проблему ( фитнес-функция ). Таким образом клиенты бы приносили реальную пользу Мировому Сообществу по поиску новых лекарств, материалов и ценных алгоритмов. Я знаю как это сделать.

    opened by optimis3232 5
  • Ошибка при запуске майнера и теста

    Ошибка при запуске майнера и теста

    При запуске обновленного майнера и теста на лучший boost factor появляются ошибки, майнинг не запускается. Win 10 x64 professional 1xRX570 4Gb Драйвера последние с сайта AMD Before Min BEST BOOT

    opened by total105 5
  • Майнер перезапускается, но не показывает ни одной ошибки

    Майнер перезапускается, но не показывает ни одной ошибки

    Запускаю майнер на риге из 5 GTX 1060 3Gb.

    C:\minertools-cuda-windows-x86-64>tonlib-cuda-cli.exe -V tonlib-cli build information: [ Commit: e624a4b82cab7e3a85817caa39e07691bcf4235f, Date: 2021-11-19 11:40:06 +0300]

    C:\minertools-cuda-windows-x86-64>tonlib-cuda-cli.exe -v 3 -C global.config.json -e "pminer start kf8JfFUEJhhpRW80_jqD7zzQteH6EBHOzxiOhygRhBdt4z2N EQBCrQBR74rSjgKe7zFW4PJZYQPtc7HZwIaM6sPXKm37EjjY 4 512 0" -l gpu_4_miner_log.txt Miner started, all output to <gpu_4_miner_log.txt>

    Перезапускается без единой ошибки.

    [ 3][t 1][2021-11-19 14:39:08.7923342][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '') [ 2][t 1][2021-11-19 14:39:08.8935016][tonlib-cli.cpp:286][!console] Tonlib is inited [ GPU #0: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #1: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #2: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #3: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #4: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ 3][t 1][2021-11-19 14:39:09.1231276][tonlib-cli.cpp:906][!console] Miner #1 created [ 3][t 1][2021-11-19 14:39:10.7441999][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '') [ 2][t 1][2021-11-19 14:39:10.8807726][tonlib-cli.cpp:286][!console] Tonlib is inited [ GPU #0: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #1: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #2: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #3: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #4: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ 3][t 1][2021-11-19 14:39:11.1063408][tonlib-cli.cpp:906][!console] Miner #1 created [ 3][t 1][2021-11-19 14:39:12.5366312][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '') [ 2][t 1][2021-11-19 14:39:12.6384929][tonlib-cli.cpp:286][!console] Tonlib is inited [ GPU #0: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #1: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #2: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #3: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #4: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ 3][t 1][2021-11-19 14:39:12.9050397][tonlib-cli.cpp:906][!console] Miner #1 created [ 3][t 1][2021-11-19 14:39:13.7456624][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '') [ 2][t 1][2021-11-19 14:39:13.8412747][tonlib-cli.cpp:286][!console] Tonlib is inited [ GPU #0: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #1: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #2: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #3: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ GPU #4: SM 6.1 NVIDIA GeForce GTX 1060 3GB ] [ 3][t 1][2021-11-19 14:39:14.1623777][tonlib-cli.cpp:906][!console] Miner #1 created test_cuda.bat отрабатывает отлично, доходит до конца.

    Win10 1607 (14393.1593) Nvidia 472.12

    opened by Dem0N-SPb 4
  • GPU openCL start problem

    GPU openCL start problem

    I have problem with start on GPU. I have 6 GPU RX470 (openCL) Windows 10

    and after start seed suggest me that is calc only on GPU.

    GIVER_ADDR=kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN MY_ADDR=EQAHDFEAt0I1sMAZMqUiL-PIRzWIK4CR2cWQ-EswyMwzX5qd GPU_ID=1 GPU_PLATFORM_ID=1 BOOST_FACTOR=1024 CONFIG_FILE=global.config.json USE_LOG=N LOG_FILE=gpu_0_miner_log.txt TEST_TIME=10

    run_opencl.bat >>>

    minertools-opencl-windows-x86-64>tonlib-opencl-cli.exe -V tonlib-cli build information: [ Commit: b44bffbffa900c56489cc9586c873adaa5b0bd25, Date: 2021-11-16 19:38:32 +0300]

    minertools-opencl-windows-x86-64>tonlib-opencl-cli.exe -v 3 -C global.config.json -e "pminer start kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN EQAHDFEAt0I1sMAZMqUiL-PIRzWIK4CR2cWQ-EswyMwzX5qd 1 1024 1" [ 3][t 1][2021-11-18 13:23:55.8433173][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '') [ 2][t 1][2021-11-18 13:23:55.8697903][tonlib-cli.cpp:285][!console] Tonlib is inited [ 3][t 1][2021-11-18 13:23:55.8699107][tonlib-cli.cpp:888][!console] Miner #1 created [ 2][t 1][2021-11-18 13:23:56.0604297][tonlib-cli.cpp:801][!PowMiner] pminer: got new options from kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN, seed=257705875437526090882464354053219453845, complexity=68790546812207893243051043754084983934488383274853527277547033 [ 3][t 1][2021-11-18 13:23:56.0605150][tonlib-cli.cpp:806][!PowMiner] [ expected required hashes for success: 1683255833878139 ] [ 3][t 1][2021-11-18 13:23:56.0611703][tonlib-cli.cpp:674][!PowMiner] pminer: start workers [ OpenCL: set kernel source (17937 bytes) ] [ OpenCL: platform #0 device #0 Intel(R) HD Graphics 510 ] [ OpenCL: platform #0 device #1 Intel(R) Celeron(R) CPU G3900 @ 2.80GHz ] [ OpenCL: platform #1 device #0 Ellesmere ] [ OpenCL: platform #1 device #1 Ellesmere ] [ OpenCL: platform #1 device #2 Ellesmere ] [ OpenCL: platform #1 device #3 Ellesmere ] [ OpenCL: platform #1 device #4 Ellesmere ] [ OpenCL: platform #1 device #5 Ellesmere ] [ OpenCL: create context for platform #1 device #1 Ellesmere, max work group size is 256 ] [ 2][t 4][2021-11-18 13:23:59.0432128][sha256.cpp:29] [ START MINER, GPU ID: 1, boost factor: 1024, throughput: 536870912 ] [ 3][t 4][2021-11-18 13:24:00.7900706][Miner.cpp:104] [ mining in progress, passed: 4728.8ms, hashes computed: 536870912, instant speed: 307.681 Mhash/s, average speed: 113.532 Mhash/s ] [ 3][t 1][2021-11-18 13:24:01.2097893][tonlib-cli.cpp:797][!PowMiner] mining seed 2577...3845 [ 3][t 4][2021-11-18 13:24:06.0170965][Miner.cpp:104] [ mining in progress, passed: 9955.8ms, hashes computed: 2147483648, instant speed: 308.143 Mhash/s, average speed: 215.701 Mhash/s ] [ 3][t 2][2021-11-18 13:24:06.9615252][tonlib-cli.cpp:797][!PowMiner] mining seed 2577...3845

    any idea ?

    opened by gsmcenter 4
  • mining not working: Error -1001 executing clGetPlatformIDs(0, NULL, &platformcount) on /home/runner/work/pow-miner-gpu/pow-miner-gpu/crypto/util/opencl/opencl.cpp:46 (invalid/unknown error code)

    mining not working: Error -1001 executing clGetPlatformIDs(0, NULL, &platformcount) on /home/runner/work/pow-miner-gpu/pow-miner-gpu/crypto/util/opencl/opencl.cpp:46 (invalid/unknown error code)

    When running miner as $ sudo ./tonlib-opencl-cli -v 3 -C global.config.json -e 'pminer start auto [MY_WALLET] 0 1' I'm getting this:

    [ 3][t 1][2022-04-05 18:59:54.233458004][TonlibClient.cpp:2108][!Tonlib]	Use blockchain name from MASTER config: 'mainnet' (was '')
    [ 2][t 1][2022-04-05 18:59:54.254172111][tonlib-cli.cpp:293][!console]	Tonlib is inited
    [ 3][t 1][2022-04-05 18:59:54.254304217][tonlib-cli.cpp:1072][!console]	Miner #1 created
    [ 3][t 1][2022-04-05 18:59:54.876143523][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf9iWhwk9GwAXjtwKG-vN7rmXT3hLIT23RBY6KhVaynRrIK7 complexity=1129986298211292607053919955647489147560119013805920581545400
    [ 3][t 1][2022-04-05 18:59:54.876287279][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf_NSzfDJI1A3rOM0GQm7xsoUXHTgmdhN5-OrGD8uwL2JMvQ complexity=1059876723496862125616570272071036334499974881229379012144639
    [ 3][t 1][2022-04-05 18:59:54.876319332][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf8JfFUEJhhpRW80_jqD7zzQteH6EBHOzxiOhygRhBdt4z2N complexity=1011035588482396440406503715354704205679855406143593479290952
    [ 3][t 1][2022-04-05 18:59:54.878421095][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN complexity=1171798303170840115727489947206072118270429554516470648922299
    [ 3][t 2][2022-04-05 18:59:54.880374827][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf8SYc83pm5JkGt0p3TQRkuiM58O9Cr3waUtR9OoFq716lN- complexity=1141814307881217997448766899439283679650993736059570952883847
    [ 3][t 2][2022-04-05 18:59:54.881573072][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf8gf1PQy4u2kURl-Gz4LbS29eaN4sVdrVQkPO-JL80VhOe6 complexity=1075303997204011673715858433623582698411734826613541035279797
    [ 3][t 1][2022-04-05 18:59:54.882796195][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf8kO6K6Qh6YM4ddjRYYlvVAK7IgyW8Zet-4ZvNrVsmQ4EOF complexity=1079070968040156245009515159650331286560850714893683298038033
    [ 3][t 1][2022-04-05 18:59:54.885099270][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf-P_TOdwcCh0AXHhBpICDMxStxHenWdLCDLNH5QcNpwMHJ8 complexity=1145879847459837183843271043187958858849988409628791198849033
    [ 3][t 1][2022-04-05 18:59:54.885430569][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf91o4NNTryJ-Cw3sDGt9OTiafmETdVFUMvylQdFPoOxIsLm complexity=1034213553081263171294884015762501037151587424117836755881255
    [ 3][t 1][2022-04-05 18:59:54.885515164][tonlib-cli.cpp:942][!PowMiner]	pminer: got kf-FV4QTxLl-7Ct3E6MqOtMt-RGXMxi27g4I645lw6MTWraV complexity=993426406274805609955679729330215507497997656205090740683840
    [ 3][t 1][2022-04-05 18:59:54.885553351][tonlib-cli.cpp:925][!PowMiner]	pminer: SELECTED GIVER (auto): kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN complexity=1171798303170840115727489947206072118270429554516470648922299
    [ 3][t 1][2022-04-05 18:59:54.885626782][Miner.cpp:105][!PowMiner]	[ mining in progress, passed: 631.0ms, hashes computed: 0, instant speed: 0.000 Mhash/s, average speed: 0.000 Mhash/s ]
    [ 2][t 1][2022-04-05 18:59:55.223632159][tonlib-cli.cpp:897][!PowMiner]	pminer: got new options from kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN, seed=305904411204990783261541474681734568368, complexity=1171798303170840115727489947206072118270429554516470648922299
    [ 3][t 1][2022-04-05 18:59:55.223708074][tonlib-cli.cpp:902][!PowMiner]	[ expected required hashes for success: 98815716769675597 ]
    [ 3][t 1][2022-04-05 18:59:55.223758281][tonlib-cli.cpp:743][!PowMiner]	pminer: start workers
    [ OpenCL: set kernel source (9417 bytes) ]
    [ 1][t 3][2022-04-05 18:59:55.225622459][opencl.cpp:46]	Error -1001 executing clGetPlatformIDs(0, NULL, &platform_count_) on /home/runner/work/pow-miner-gpu/pow-miner-gpu/crypto/util/opencl/opencl.cpp:46 (invalid/unknown error code)
    [pid 3620] [time 1649185195] Signal: 6
    ------- Stack Backtrace -------
    ./tonlib-opencl-cli(+0x28b591)[0x55b5fcb28591]
    ./tonlib-opencl-cli(+0x28b8a5)[0x55b5fcb288a5]
    ./tonlib-opencl-cli(+0x28888c)[0x55b5fcb2588c]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x143c0)[0x7fae60a2e3c0]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fae6051d03b]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fae604fc859]
    ./tonlib-opencl-cli(+0xef254)[0x55b5fc98c254]
    ./tonlib-opencl-cli(+0x2d1aff)[0x55b5fcb6eaff]
    ./tonlib-opencl-cli(+0x2cc77d)[0x55b5fcb6977d]
    ./tonlib-opencl-cli(_ZN2td16LambdaDestructorIZNS_6detail13ThreadPthreadC4IZN9TonlibCli8PowMiner4loopEvEUlvE_JEEEOT_DpOT0_EUlvE_ED2Ev+0x4e)[0x55b5fc9f459e]
    ./tonlib-opencl-cli(_ZN2td16LambdaDestructorIZNS_6detail13ThreadPthreadC4IZN9TonlibCli8PowMiner4loopEvEUlvE_JEEEOT_DpOT0_EUlvE_ED0Ev+0x15)[0x55b5fc9f4825]
    ./tonlib-opencl-cli(_ZN2td6detail13ThreadPthread10run_threadEPv+0x3b)[0x55b5fc9cf21b]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x8609)[0x7fae60a22609]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7fae605f9163]
    -------------------------------
    

    I'm using

    description: VGA compatible controller
           product: Pitcairn PRO [Radeon HD 7850 / R7 265 / R9 270 1024SP]
           vendor: Advanced Micro Devices, Inc. [AMD/ATI]
           physical id: 0
           bus info: pci@0000:04:00.0
           version: 00
           width: 64 bits
           clock: 33MHz
           capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
           configuration: driver=radeon latency=0
           resources: irq:24 memory:e0000000-efffffff memory:dff80000-dffbffff ioport:e000(size=256) memory:c0000-dffff
    
    opened by ilegsei 0
  • GTX 750ti mining not working

    GTX 750ti mining not working

    Hi,

    I've downloaded the source for CUDA POW Miner and built it on Ubuntu 20.04. When I try to run the miner with ./tonlib-cuda-cli -v 3 -C global.config.json -e 'pminer start "random" EQCP2wrOr3U0taKPNKIOkM5wWND4QjAswJV3729rMfEQwxi1 0 32' I receive the following error:

    [ 2][t 1][2022-02-14 18:21:56.108056926][TonlibClient.cpp:2067][!Tonlib][&!config->ignore_cache_]       Unknown LastBlockState: [PosixError : No such file or directory : 2 : File "/usr/bin/ton/tonlib/713A9A9229AAEB7A587A0A0989A562C53DF123D348D95A219337E723F10B5596.blkstate" can't be opened for reading]
    [ 3][t 1][2022-02-14 18:21:56.108115215][TonlibClient.cpp:2096][!Tonlib]        Use init block from USER config: (-1,8000000000000000,16905517):F11E84F6DEFB759454FB249F918E6DCCFBB4768AF04067E61BD25485FECE398B:4428A1347BE3A8BBFA2A1FCDD1BC7E74EC3260D34F488AA677DE61DD28450063
    [ 2][t 1][2022-02-14 18:21:56.108731303][tonlib-cli.cpp:293][!console]  Tonlib is inited
    Unable to query number of CUDA devices! Is an nVidia driver installed?
    

    I'm running Ubuntu 20.04:

    uname -a
    Linux user1-desktop 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
    

    with latest 510 nvidia drivers:

    nvidia-smi
    Mon Feb 14 09:51:00 2022       
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 510.47.03    Driver Version: 510.47.03    CUDA Version: 11.6     |
    |-------------------------------+----------------------+----------------------+
    | 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 ...  Off  | 00000000:02:00.0 Off |                  N/A |
    | 25%   29C    P8     1W /  38W |     39MiB /  2048MiB |      0%      Default |
    |                               |                      |                  N/A |
    +-------------------------------+----------------------+----------------------+
                                                                                   
    +-----------------------------------------------------------------------------+
    | Processes:                                                                  |
    |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
    |        ID   ID                                                   Usage      |
    |=============================================================================|
    |    0   N/A  N/A       982      G   /usr/lib/xorg/Xorg                 29MiB |
    |    0   N/A  N/A      1216      G   /usr/bin/gnome-shell                5MiB |
    +-----------------------------------------------------------------------------+
    
    opened by OvoNemaSmisla 0
  • Miner restart every 15 minutes

    Miner restart every 15 minutes

    Thanks for writing this tool btw very helpful.

    I realise though that every 15 minutes, it would restart the job and cause the hashes computed to restart. Is it normal? See attached.

    1

    opened by tommysegoro 0
  • Miner keeps restarting

    Miner keeps restarting

    Hi all,

    I've been able to get mining running, but every 300-500seconds or so, I keep getting this message:

    pminer: got new options from xxxx

    When that happens "passed" and "hashes computed" restarted back to 0 for all GPUs. I have 8 x AMD RX6600.

    Do we know what "got new options from" mean? I use HiveOS and it keeps resetting the "miner uptime" time when that happens. In saying that, all the cards are "running" and well. Does it mean that I'm still mining or is this an issue?

    Whether I tried to run manually from the console or through HiveOS, it's the same. Eventually I get "pminer: got new options from" after several minutes.

    opened by tommysegoro 0
Releases(20211230.1)
Owner
null
A GPU (CUDA) based Artificial Neural Network library

Updates - 05/10/2017: Added a new example The program "image_generator" is located in the "/src/examples" subdirectory and was submitted by Ben Bogart

Daniel Frenzel 93 Dec 10, 2022
Tensors and Dynamic neural networks in Python with strong GPU acceleration

PyTorch is a Python package that provides two high-level features: Tensor computation (like NumPy) with strong GPU acceleration Deep neural networks b

null 61.4k Jan 4, 2023
GPU Cloth TOP in TouchDesigner using CUDA-enabled NVIDIA Flex

This project demonstrates how to use NVIDIA FleX for GPU cloth simulation in a TouchDesigner Custom Operator. It also shows how to render dynamic meshes from the texture data using custom PBR GLSL material shaders inside TouchDesigner.

Vinícius Ginja 37 Jul 27, 2022
RDO BC1-7 GPU texture encoders

bc7enc - Fast BC1-7 GPU texture encoders with Rate Distortion Optimization (RDO) This repo contains fast texture encoders for BC1-7. All formats suppo

Rich Geldreich 113 Dec 31, 2022
GPU PyTorch TOP in TouchDesigner with CUDA-enabled OpenCV

PyTorchTOP This project demonstrates how to use OpenCV with CUDA modules and PyTorch/LibTorch in a TouchDesigner Custom Operator. Building this projec

David 65 Jun 15, 2022
🐸 Coqui STT is an open source Speech-to-Text toolkit which can run in real time on devices ranging from a Raspberry Pi 4 to high power GPU servers

Coqui STT ( ?? STT) is an open-source deep-learning toolkit for training and deploying speech-to-text models. ?? STT is battle tested in both producti

Coqui.ai 1.7k Jan 2, 2023
A fast, scalable, high performance Gradient Boosting on Decision Trees library, used for ranking, classification, regression and other machine learning tasks for Python, R, Java, C++. Supports computation on CPU and GPU.

Website | Documentation | Tutorials | Installation | Release Notes CatBoost is a machine learning method based on gradient boosting over decision tree

CatBoost 6.9k Dec 31, 2022
CTranslate2 is a fast inference engine for OpenNMT-py and OpenNMT-tf models supporting both CPU and GPU executio

CTranslate2 is a fast inference engine for OpenNMT-py and OpenNMT-tf models supporting both CPU and GPU execution. The goal is to provide comprehensive inference features and be the most efficient and cost-effective solution to deploy standard neural machine translation systems such as Transformer models.

OpenNMT 395 Jan 2, 2023
Driver layer GPU libraries and tests for PSP2

PVR_PSP2 Driver layer GPU libraries and tests for PSP2 Currently this project include: Common and PSP2-specific GPU driver headers. Extension library

null 69 Dec 1, 2022
A easy-to-use image processing library accelerated with CUDA on GPU.

gpucv Have you used OpenCV on your CPU, and wanted to run it on GPU. Did you try installing OpenCV and get frustrated with its installation. Fret not

shrikumaran pb 4 Aug 14, 2021
GPU ray tracing framework using NVIDIA OptiX 7

GPU ray tracing framework using NVIDIA OptiX 7

Shunji Kiuchi 27 Dec 22, 2022
a fast and user-friendly runtime for transformer inference (Bert, Albert, GPT2, Decoders, etc) on CPU and GPU.

a fast and user-friendly runtime for transformer inference (Bert, Albert, GPT2, Decoders, etc) on CPU and GPU.

Tencent 1.2k Dec 29, 2022
Hardware-accelerated DNN model inference ROS2 packages using NVIDIA Triton/TensorRT for both Jetson and x86_64 with CUDA-capable GPU.

Isaac ROS DNN Inference Overview This repository provides two NVIDIA GPU-accelerated ROS2 nodes that perform deep learning inference using custom mode

NVIDIA Isaac ROS 62 Dec 14, 2022
An efficient C++17 GPU numerical computing library with Python-like syntax

MatX - Matrix Primitives Library MatX is a modern C++ library for numerical computing on NVIDIA GPUs. Near-native performance can be achieved while us

NVIDIA Corporation 625 Jan 1, 2023
Code generation for automatic differentiation with GPU support.

Code generation for automatic differentiation with GPU support.

Eric Heiden 41 Dec 5, 2022
Docker files and scripts to setup and run VINS-FUSION-gpu on NVIDIA jetson boards inside a docker container.

jetson_vins_fusion_docker This repository provides Docker files and scripts to easily setup and run VINS-FUSION-gpu on NVIDIA jetson boards inside a d

Mohamed Abdelkader Zahana 22 Dec 18, 2022
A lightweight 2D Pose model can be deployed on Linux/Window/Android, supports CPU/GPU inference acceleration, and can be detected in real time on ordinary mobile phones.

A lightweight 2D Pose model can be deployed on Linux/Window/Android, supports CPU/GPU inference acceleration, and can be detected in real time on ordinary mobile phones.

JinquanPan 58 Jan 3, 2023
SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it simple and easy for physicists to implement lattice QCD formulas while still providing the best possible performance.

SIMULATeQCD a SImple MUlti-GPU LATtice code for QCD calculations SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it simple and easy for ph

null 12 Nov 30, 2022
Golang bindings for Nvidia Datacenter GPU Manager (DCGM)

Bindings Golang bindings are provided for NVIDIA Data Center GPU Manager (DCGM). DCGM is a set of tools for managing and monitoring NVIDIA GPUs in clu

NVIDIA Corporation 40 Dec 27, 2022