Giter Club home page Giter Club logo

pow-miner-gpu's Introduction

"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

GPU POW miner

GPU pow-miner located at crypto/util, check pow-miner.md and pow-miner-howto.md for details.

TONLIB CLI with embedded GPU-miner located at tonlib/tonlib, check pow-miner-howto.md for details.

GPU miner executable files for Windows can be downloaded from https://github.com/tontechio/pow-miner-gpu/releases, check pow-miner-windows-howto.md for details.

HW Supported:

  • Nvidia: nVidia GT640+ or newer, Quadro series with Kepler chip or newer (FX not supported)
  • Radeon HD78xx series and newer, AMD GPU GCN 1.0+
  • HD4000 or newer

Tested on:

GPU Hashrate
NVIDIA GTX1060 3.8e+08
NVIDIA GTX1070 5.2e+08
NVIDIA GTX1070 Ti 7.1e+08
NVIDIA GTX1080 8.58523e+08
NVIDIA GTX1080 Ti 9.21737e+08
NVIDIA GTX1660 Ti 7.16364e+08
NVIDIA GTX1660 Super 6.41743e+08
NVIDIA RTX2060 Super 8.67233e+08
NVIDIA RTX2070
NVIDIA RTX2080 Super 1.34181e+09
NVIDIA RTX3060 8.45722e+08
NVIDIA RTX3060 Ti 1.238870e+09
NVIDIA RTX3070 1.45591e+09
NVIDIA RTX3070 Ti 1.594258e+09
NVIDIA RTX3080 2.018200e+09
NVIDIA RTX3090 2.385980e+09
NVIDIA Tesla T4
AMD Radeon 580 4.2e+08
AMD Radeon 6600 6.6e+08

pow-miner-gpu's People

Contributors

borobrobro avatar dsglazyrin avatar fishmandev avatar neodix42 avatar omicrontau avatar stsdmchv avatar sunnyhellious avatar tolya-yanot avatar tontechio avatar wolfpro avatar

Stargazers

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

Watchers

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

pow-miner-gpu's Issues

OpenCL miner works only on first 2 GPUs.

Hello, I have 7 RX580 GPUs:

[ OpenCL: platform #0 device #0 Ellesmere ]
[ OpenCL: platform #0 device #1 Ellesmere ]
[ OpenCL: platform #0 device #2 Ellesmere ]
[ OpenCL: platform #0 device #3 Ellesmere ]
[ OpenCL: platform #0 device #4 Ellesmere ]
[ OpenCL: platform #0 device #5 Ellesmere ]
[ OpenCL: platform #0 device #6 Ellesmere ]
[ OpenCL: platform #1 device #0 Intel(R) HD Graphics ]
[ OpenCL: platform #1 device #1 Intel(R) Celeron(R) CPU G1840 @ 2.80GHz ]

Miner works only if I set (platform=0, device=0) and (platform=0, device=1). If I set any other device id (from 2 to 6) I get the following error:
Error 749353232 executing clGetDeviceInfo(devices_[device_idx], CL_DEVICE_NAME, sizeof(buf), buf, NULL) on D:\a\pow-miner-gpu\pow-miner-gpu\crypto\util\opencl\opencl.cpp:77 (invalid/unknown error code) [pid 3400] [time 1636733282] Signal: 22
or
Error -33 executing clGetDeviceInfo(devices_[device_idx], CL_DEVICE_NAME, sizeof(buf), buf, NULL) on D:\a\pow-miner-gpu\pow-miner-gpu\crypto\util\opencl\opencl.cpp:77 (invalid device) [pid 7960] [time 1636733501] Signal: 22

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

tonlib-cli claims "No Lite Servers"

Может быть, я что-то упустил, но при вызове

/usr/bin/ton/tonlib/tonlib-cli
>runmethod getTransactions

я получаю

[ 1][t 1][2021-11-17 16:56:55.287391943][tonlib-cli.cpp:1501][!console] vs
Run smc_methodIdName {
name = "getTransactions"
}
With stack:
Query {runmethod getTransactions} FAILED:
[Error : 500 : NO_LITE_SERVERS]

Майнер при этом работает, значит, метод get_pow_params, похоже, вызывается. Как это починить?

Benchmark mode always tests GPU #0

Win10x64. 471.41 driver. Latest release of pow-miner-gpu. Multy-GPU system.
Starting miner in benchmark mode with any value of -g parameter always leads to benchmark of GPU #0

image

error - mining stopped

synchronization: DONE in 99.6ms
[ 1][t 1][2021-10-26 13:01:40.806642240][tonlib-cli.cpp:739][!PowMiner][&status.is_error()] pminer: [Error : 500 : LITE_SERVER_TIMEOUT: timeout]
[ GPU #0: bitcredit_cpu_hash all CUDA-capable devices are busy or unavailable ]
[ GPU #0: bitcredit_cpu_hash driver shutting down ]
[ GPU #0: bitcredit_cpu_hash driver shutting down ]
[ GPU #0: bitcredit_cpu_hash driver shutting down ]
[ GPU #0: bitcredit_cpu_hash driver shutting down

Can't compile pow-miner-cuda

Hello!
pow-miner-cuda compiles with errors:
Console output after "/usr/bin/ton$ sudo make -j 8 pow-miner pow-miner-cuda lite-client":

[ 94%] Built target ton_block
[100%] Building CUDA object crypto/CMakeFiles/pow-miner-cuda-lib.dir/util/cuda/credits.cu.o
[100%] Building CUDA object crypto/CMakeFiles/pow-miner-cuda-lib.dir/util/cuda/cuda_credits.cu.o
/usr/src/pow-miner-gpu/tdutils/td/utils/StackAllocator.h(71): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(202): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::NullLog"

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(311): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::TsLog"

/usr/src/pow-miner-gpu/tdutils/td/utils/StackAllocator.h(71): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(202): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::NullLog"

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(311): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::TsLog"

/usr/src/pow-miner-gpu/crypto/vm/cells/CellSlice.h(45): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/vm/cells/CellSlice.h(45): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/buffer.h(127): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/buffer.h(127): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(735): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::NatWidth"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(749): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(862): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::Int"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(892): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::UInt"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(906): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/../ton/ton-types.h(33): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(735): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::NatWidth"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(749): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(862): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::Int"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(892): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::UInt"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(906): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/../ton/ton-types.h(33): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/util/cuda/credits.cu(37): warning: variable "complexity" was declared but never referenced

/usr/src/pow-miner-gpu/tdutils/td/utils/StackAllocator.h(71): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(202): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::NullLog"

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(311): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::TsLog"

/usr/src/pow-miner-gpu/crypto/vm/cells/CellSlice.h(45): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/buffer.h(127): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/StackAllocator.h(71): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(202): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::NullLog"

/usr/src/pow-miner-gpu/tdutils/td/utils/logging.h(311): warning: overloaded virtual function "td::LogInterface::append" is only partially overridden in class "td::TsLog"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(735): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::NatWidth"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(749): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(862): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::Int"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(892): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::UInt"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(906): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/../ton/ton-types.h(33): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/vm/cells/CellSlice.h(45): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/tdutils/td/utils/buffer.h(127): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(735): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::NatWidth"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(749): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(862): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::Int"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(892): warning: overloaded virtual function "tlb::TLB::as_integer" is only partially overridden in class "tlb::UInt"

/usr/src/pow-miner-gpu/crypto/tl/tlblib.hpp(906): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/crypto/../ton/ton-types.h(33): warning: integer conversion resulted in a change of sign

/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:101:29: error: parameter packs not expanded with ‘...’:
template <typename F, typename = EnableIfCompatible<const F&>>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:101:29: note: ‘Args’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:116:13: error: parameter packs not expanded with ‘...’:
typename F, typename = EnableIfCompatible<F*>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:116:13: note: ‘Args’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h: In instantiation of ‘H absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]’:
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:662:48: required from ‘H absl::AbslHashValue(H, const absl::Cord&) [with H = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:661:21: required from ‘static absl::enable_if_t<std::is_same<H, decltype (absl::hash_internal::AbslHashValue(std::move(state), value))>::value, H> absl::hash_internal::HashSelect::HashValueProbe::Invoke(H, const T&) [with H = absl::hash_internal::MixingHashState; T = absl::Cord; absl::enable_if_t<std::is_same<H, decltype (absl::hash_internal::AbslHashValue(std::move(state), value))>::value, H> = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:998:64: required from ‘static H absl::hash_internal::HashStateBase::combine(H, const T&, const Ts& ...) [with T = absl::Cord; Ts = {}; H = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:768:36: required from ‘static size_t absl::hash_internal::MixingHashState::hash(const T&) [with T = absl::Cord; typename std::enable_if<(! absl::conjunction<std::is_integral<_Tp>, absl::hash_internal::is_uniquely_represented<T, void> >::value), int>::type = 0; size_t = long unsigned int]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:987:29: required from ‘size_t absl::hash_internal::HashImpl::operator()(const T&) const [with T = absl::Cord; size_t = long unsigned int]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/container/internal/hash_function_defaults.h:77:24: required from here
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:894:1: error: no matching function for call to ‘absl::Cord::ForEachChunk(absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]::<lambda(absl::string_view)>) const’
ForEachChunk([&combiner, &hash_state](absl::string_view chunk) {
^
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:1424:13: note: candidate: ‘void absl::Cord::ForEachChunk(absl::FunctionRef<void(absl::string_view)>) const’
inline void Cord::ForEachChunk(
^~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:1424:13: note: no known conversion for argument 1 from ‘absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]::<lambda(absl::string_view)>’ to ‘absl::FunctionRef<void(absl::string_view)>’
make[3]: *** [crypto/CMakeFiles/pow-miner-cuda-lib.dir/build.make:115: crypto/CMakeFiles/pow-miner-cuda-lib.dir/util/cuda/credits.cu.o] Ошибка 1
make[3]: *** Ожидание завершения заданий…
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:101:29: error: parameter packs not expanded with ‘...’:
template <typename F, typename = EnableIfCompatible<const F&>>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:101:29: note: ‘Args’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:116:13: error: parameter packs not expanded with ‘...’:
typename F, typename = EnableIfCompatible<F*>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/functional/function_ref.h:116:13: note: ‘Args’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h: In instantiation of ‘H absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]’:
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:662:48: required from ‘H absl::AbslHashValue(H, const absl::Cord&) [with H = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:661:21: required from ‘static absl::enable_if_t<std::is_same<H, decltype (absl::hash_internal::AbslHashValue(std::move(state), value))>::value, H> absl::hash_internal::HashSelect::HashValueProbe::Invoke(H, const T&) [with H = absl::hash_internal::MixingHashState; T = absl::Cord; absl::enable_if_t<std::is_same<H, decltype (absl::hash_internal::AbslHashValue(std::move(state), value))>::value, H> = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:998:64: required from ‘static H absl::hash_internal::HashStateBase::combine(H, const T&, const Ts& ...) [with T = absl::Cord; Ts = {}; H = absl::hash_internal::MixingHashState]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:768:36: required from ‘static size_t absl::hash_internal::MixingHashState::hash(const T&) [with T = absl::Cord; typename std::enable_if<(! absl::conjunction<std::is_integral<_Tp>, absl::hash_internal::is_uniquely_represented<T, void> >::value), int>::type = 0; size_t = long unsigned int]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/hash/internal/hash.h:987:29: required from ‘size_t absl::hash_internal::HashImpl::operator()(const T&) const [with T = absl::Cord; size_t = long unsigned int]’
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/container/internal/hash_function_defaults.h:77:24: required from here
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:894:1: error: no matching function for call to ‘absl::Cord::ForEachChunk(absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]::<lambda(absl::string_view)>) const’
ForEachChunk([&combiner, &hash_state](absl::string_view chunk) {
^
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:1424:13: note: candidate: ‘void absl::Cord::ForEachChunk(absl::FunctionRef<void(absl::string_view)>) const’
inline void Cord::ForEachChunk(
^~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/strings/cord.h:1424:13: note: no known conversion for argument 1 from ‘absl::Cord::HashFragmented(H) const [with H = absl::hash_internal::MixingHashState]::<lambda(absl::string_view)>’ to ‘absl::FunctionRef<void(absl::string_view)>’
make[3]: *** [crypto/CMakeFiles/pow-miner-cuda-lib.dir/build.make:128: crypto/CMakeFiles/pow-miner-cuda-lib.dir/util/cuda/cuda_credits.cu.o] Ошибка 1
make[2]: *** [CMakeFiles/Makefile2:9178: crypto/CMakeFiles/pow-miner-cuda-lib.dir/all] Ошибка 2
make[1]: *** [CMakeFiles/Makefile2:8721: crypto/CMakeFiles/pow-miner-cuda.dir/rule] Ошибка 2
make: *** [Makefile:2138: pow-miner-cuda] Ошибка 2

I would be grateful if you can tell me what needs to be fixed.

Now use more GPU

Hi, Can i use more GPU, how i must configure run_config for this?

Few gpus

Hi,

How can i use a pow-miner-gpu with a few gpus in one system? It seems to parameter "-g" works only with one value?

Thanks.

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?

need more stdout trace logging

# ...
launching: time /usr/bin/ton/crypto/pow-miner-opencl -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -g0 -t15 0:CENSORED CENSORED CENSORED 100000000000
[ expected required hashes for success: 457118311290448 ]
[ OpenCL: set kernel source (17937 bytes) ]
OpenCL platforms count: 1
[ OpenCL: platform #0 device #0 Ellesmere ]
[ OpenCL: create context for platform #0 device #0 Ellesmere, max work group size is 256 ]
[ GPU ID: 0, CPU thread: 0, GPU threads: 8, throughput: 33554432 ]
[ hashes computed: 0 ]
[ speed: 0 hps ]
Command exited with non-zero status 1
1.17user 0.08system 0:53.00elapsed 2%CPU (0avgtext+0avgdata 127384maxresident)k
5304inputs+8outputs (22major+24401minor)pagefaults 0swaps
completed: time /usr/bin/ton/crypto/pow-miner-opencl -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -g0 -t15 0:CENSORED CENSORED CENSORED 100000000000
CLEXITSTATUS=1
# ...
exit status 1

GPU #0: bitcredit_setBlockTarget invalid device symbol

I am trying to run the miner on a laptop (Windows 11 x64).
NVIDIA GTX 960M graphics card.
I did everything according to the instructions, but I see an error in the terminal

C:\GPUMiner>tonlib-cuda-cli.exe -v 3 -C global.config.json -e "pminer start kf-FV4QTxLl-7Ct3E6MqOtMt-RGXMxi27g4I645lw6MTWraV EQDIv4TOzyDAkXZf2HWQ4bezP5-8kVofFwokvJZQ1Fk7GCoi 0 32"
[ 3][t 1][2021-11-10 13:41:48.0577633][TonlibClient.cpp:2108][!Tonlib]  Use blockchain name from MASTER config: 'mainnet' (was '')
Tonlib is inited
[ 1][t 1][2021-11-10 13:41:48.4666062][cuda.cpp:81][!console]   [ GPU #0: SM 5.0 NVIDIA GeForce GTX 960M ]
[ 3][t 1][2021-11-10 13:41:48.4667749][tonlib-cli.cpp:883][!console]    Miner #1 created
synchronization: ???
synchronization: 0%
synchronization: DONE in 699.1ms
[ 3][t 1][2021-11-10 13:41:49.3817483][tonlib-cli.cpp:796][!PowMiner]   pminer: got new options from kf-FV4QTxLl-7Ct3E6MqOtMt-RGXMxi27g4I645lw6MTWraV, seed=156185698434286525545710372048077321757, complexity=204857950755971713779463712915849985371117315165373013385286222
[ 3][t 1][2021-11-10 13:41:49.3819134][tonlib-cli.cpp:801][!PowMiner]   [ expected required hashes for success: 565231121418609 ]
[ 3][t 1][2021-11-10 13:41:49.3835790][tonlib-cli.cpp:674][!PowMiner]   pminer: start workers
[ 3][t 4][2021-11-10 13:41:49.4682689][credits.cu:29]   [ START MINER, GPU ID: 0, boost factor: 32, throughput: 16777216 ]
[ 1][t 4][2021-11-10 13:41:49.4694932][cuda.cpp:205]    [ GPU #0: bitcredit_setBlockTarget invalid device symbol ]
synchronization: 100%
synchronization: DONE in 3341.6ms
synchronization: 100%
synchronization: DONE in 442.4ms
synchronization: 100%
synchronization: DONE in 633.5ms
......

What is it?
GPU #0: bitcredit_setBlockTarget invalid device symbol

pow-miner fails to build

Hello!

First of all, thank you for your great work!

However, I was trying to build the OpenCL version of the tool, but got the following compilation errors:

# make -j 8 pow-miner pow-miner-opencl tonlib-cli tonlib-opencl-cli lite-client
[  5%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
[  5%] Building CXX object third-party/crc32c/CMakeFiles/crc32c_arm64.dir/src/crc32c_arm64.cc.o
[  5%] Building CXX object third-party/crc32c/CMakeFiles/crc32c_sse42.dir/src/crc32c_sse42.cc.o
[  5%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_dynamic_annotations.dir/dynamic_annotations.cc.o
[  5%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
[  5%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_civil_time.dir/internal/cctz/src/civil_time_detail.cc.o
[  5%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
[ 11%] Building CXX object third-party/abseil-cpp/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o
[ 11%] Built target crc32c_arm64
[ 11%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
[ 11%] Linking CXX static library libabsl_dynamic_annotations.a
[ 11%] Built target absl_dynamic_annotations
[ 11%] Building CXX object third-party/abseil-cpp/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o
[ 11%] Linking CXX static library libabsl_spinlock_wait.a
[ 11%] Built target absl_spinlock_wait
[ 11%] Built target crc32c_sse42
[ 11%] Checking the git repository for changes...
[ 11%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_config.cpp.o
[ 11%] Built target check_git
[ 11%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o
[ 17%] Linking CXX static library libabsl_exponential_biased.a
[ 17%] Linking CXX static library libabsl_city.a
[ 17%] Built target absl_exponential_biased
[ 17%] Building CXX object third-party/crc32c/CMakeFiles/crc32c.dir/src/crc32c_portable.cc.o
[ 17%] Built target absl_city
[ 17%] Building CXX object third-party/crc32c/CMakeFiles/crc32c.dir/src/crc32c.cc.o
[ 17%] Linking CXX static library libabsl_log_severity.a
[ 17%] Built target absl_log_severity
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o
[ 17%] Building CXX object CMakeFiles/git.dir/git.cc.o
[ 17%] Linking CXX static library libcrc32c.a
[ 17%] Built target crc32c
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o
[ 17%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_core.cpp.o
[ 17%] Linking CXX static library libabsl_civil_time.a
[ 17%] Built target absl_civil_time
[ 17%] Linking CXX static library libabsl_int128.a
[ 17%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o
[ 17%] Built target absl_int128
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o
[ 17%] Linking CXX static library libgit.a
[ 17%] Built target git
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o
[ 17%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_file_outputer.cpp.o
[ 17%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_file_utils.cpp.o
[ 17%] Linking CXX static library libabsl_raw_logging_internal.a
[ 17%] Built target absl_raw_logging_internal
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o
[ 17%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o
[ 17%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_generate.cpp.o
[ 17%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_outputer.cpp.o
[ 23%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_writer.cpp.o
[ 23%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_string_outputer.cpp.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o
[ 23%] Linking CXX static library libabsl_throw_delegate.a
[ 23%] Built target absl_throw_delegate
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o
[ 23%] Linking CXX static library libabsl_base.a
[ 23%] Built target absl_base
[ 23%] Building CXX object third-party/abseil-cpp/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o
[ 23%] Linking CXX static library libabsl_strings_internal.a
[ 23%] Built target absl_strings_internal
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/ascii.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o
[ 23%] Linking CXX static library libabsl_bad_optional_access.a
[ 23%] Linking CXX static library libabsl_bad_variant_access.a
[ 23%] Built target absl_bad_optional_access
[ 23%] Built target absl_bad_variant_access
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o
[ 23%] Linking CXX static library libabsl_debugging_internal.a
[ 23%] Built target absl_debugging_internal
[ 23%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_bigint.cc.o
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o
[ 29%] Linking CXX static library libabsl_time_zone.a
[ 29%] Built target absl_time_zone
[ 29%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o
[ 29%] Linking CXX static library libabsl_malloc_internal.a
[ 29%] Built target absl_malloc_internal
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o
[ 29%] Linking CXX static library libabsl_stacktrace.a
[ 29%] Built target absl_stacktrace
[ 29%] Building CXX object third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o
[ 29%] Linking CXX static library libabsl_demangle_internal.a
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o
[ 29%] Built target absl_demangle_internal
[ 29%] Building CXX object third-party/abseil-cpp/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc: In member function ‘void absl::lts_2020_02_25::synchronization_internal::GraphCycles::RemoveNode(void*)’:
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                          ^~~~~~~~~~~~~~
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:49: error: expected primary-expression before ‘>’ token
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                 ^
/usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:52: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                    ^~~
      |                                                    std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/src/pow-miner-gpu/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:38:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
[ 29%] Linking CXX static library libtdtl.a
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o
make[3]: *** [third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/build.make:76: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:4706: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o
[ 29%] Built target tdtl
[ 29%] Building CXX object third-party/abseil-cpp/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o
[ 29%] Linking CXX static library libabsl_strings.a
[ 35%] Linking CXX static library libabsl_symbolize.a
[ 35%] Built target absl_strings
[ 35%] Built target absl_symbolize
make[1]: *** [CMakeFiles/Makefile2:7071: crypto/CMakeFiles/pow-miner.dir/rule] Error 2
make: *** [Makefile:1882: pow-miner] Error 2

cmake call prior to it:

# cmake -DCMAKE_BUILD_TYPE=Release -DMINEROPENCL=true /usr/src/pow-miner-gpu
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CRC32C_HAVE_SSE42
-- Performing Test CRC32C_HAVE_SSE42 - Success
-- Performing Test ROCKSDB_HAVE_SSE42
-- Performing Test ROCKSDB_HAVE_SSE42 - Success
Add abseil-cpp
-- No CMAKE_CXX_STANDARD set, assuming 11
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
Add crc32c
-- Performing Test CRC32C_HAVE_NO_DEPRECATED
-- Performing Test CRC32C_HAVE_NO_DEPRECATED - Success
-- Performing Test CRC32C_HAVE_NO_SIGN_COMPARE
-- Performing Test CRC32C_HAVE_NO_SIGN_COMPARE - Success
-- Performing Test CRC32C_HAVE_NO_UNUSED_PARAMETER
-- Performing Test CRC32C_HAVE_NO_UNUSED_PARAMETER - Success
-- Performing Test CRC32C_HAVE_NO_MISSING_FIELD_INITIALIZERS
-- Performing Test CRC32C_HAVE_NO_MISSING_FIELD_INITIALIZERS - Success
-- Performing Test HAVE_BUILTIN_PREFETCH
-- Performing Test HAVE_BUILTIN_PREFETCH - Success
-- Performing Test HAVE_MM_PREFETCH
-- Performing Test HAVE_MM_PREFETCH - Success
-- Performing Test HAVE_ARM64_CRC32C
-- Performing Test HAVE_ARM64_CRC32C - Failed
-- Performing Test HAVE_STRONG_GETAUXVAL
-- Performing Test HAVE_STRONG_GETAUXVAL - Failed
-- Performing Test HAVE_WEAK_GETAUXVAL
-- Performing Test HAVE_WEAK_GETAUXVAL - Success
Add rocksdb
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Found Git: /usr/bin/git (found version "2.32.0") 
fatal: no tag exactly matches '0fb938c4482af318817b9d0737a741681b59a117'
-- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER
-- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Success
-- Performing Test BUILTIN_ATOMIC
-- Performing Test BUILTIN_ATOMIC - Success
-- Performing Test HAS_LIBURING
-- Performing Test HAS_LIBURING - Failed
-- Performing Test HAVE_THREAD_LOCAL
-- Performing Test HAVE_THREAD_LOCAL - Success
-- Enabling RTTI in Debug builds only (default)
-- Performing Test HAVE_FALLOCATE
-- Performing Test HAVE_FALLOCATE - Success
-- Performing Test HAVE_SYNC_FILE_RANGE_WRITE
-- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Looking for sched_getcpu
-- Looking for sched_getcpu - found
-- Looking for getauxval
-- Looking for getauxval - not found
-- JNI library is disabled
Add ton
-- Could NOT find ccache
-- Performing Test HAVE_STD14
-- Performing Test HAVE_STD14 - Success
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2 - Success
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND - Success
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO - Success
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP - Success
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WVLA
-- Performing Test HAVE_CXX_FLAG_WVLA - Success
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_FLAG_WCONVERSION
-- Performing Test HAVE_CXX_FLAG_WCONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS - Failed
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD - Failed
-- Performing Test HAVE_CXX_FLAG_WREDUNDANT_MOVE
-- Performing Test HAVE_CXX_FLAG_WREDUNDANT_MOVE - Success
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- Found ZLIB: /usr/include /usr/lib/x86_64-linux-gnu/libz.so
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1l")  
-- Performing Test GNU_READLINE_FOUND
-- Performing Test GNU_READLINE_FOUND - Success
-- Found Readline: /usr/include  
-- Found Readline: /usr/include /usr/lib/x86_64-linux-gnu/libreadline.so
-- Performing Test USABLE_READLINE_FOUND
-- Performing Test USABLE_READLINE_FOUND - Success
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.2") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Found GSL: /usr/include (found version "2.6") 
CMake Warning (dev) at /usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (mhd) does
  not match the name of the calling package (MHD).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindMHD.cmake:37 (find_package_handle_standard_args)
  blockchain-explorer/CMakeLists.txt:4 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found mhd: /usr/include  
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/bin/ton
# cat /etc/issue
Ubuntu 21.10
# uname -a
Linux kitcat 5.13.0-21-generic #21-Ubuntu SMP Tue Oct 19 08:59:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
# cmake --version
cmake version 3.21.4
# make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu

Do you possibly know what could be wrong? Any suggestions will be highly appreciated.

I'm not a C++ guy, but it looks like some header includes could be missing?

amd rx 560

Hello developer faced with the problem of artifacts on the mine by your opencl miner all the other manners work correctly your artefachit I do not know what this is related to

mining stopped with error

[ 1][t 1][2021-10-28 15:30:32.673478924][tonlib-cli.cpp:739][!PowMiner][&status.is_error()] pminer: [Error : 500 : LITE_SERVER_NETWORKadnl query timeout(during last block synchronization)]
root@core:/usr/bin/ton#

Wrong average hashrate 20211119-3

The average speed shown on version 20211119-3 is too high.
My 2060super gets this

mining in progress, passed: 318.3s, hashes computed: 7119411609600, instant speed: 1009.682 Mhash/s, average speed: 22363.995 Mhash/s ]

Seems like the number of "passed" or "hashes computed" is wrong.
I use systemctl to automate the process. If it matters.

Tks

TONLIB CLI wrapper with embedded GPU miner test

I am testing currently TONLIB CLI wrapper with embedded GPU miner on my 1660ti mining rig.

Can I use all 8 gpus in the same time by starting one client? Or i have to start separate client for each GPU?

While GPU is on high load looking on power consumption, i get this message in client

[ 2][t 1][2021-10-21 22:32:16.074551299][TonlibClient.cpp:682][!GetAccountState] Unknown code hash: 2s9GOKuPdHJC16F3zmLcwbF87f6YV9l6
LQuRrdLuUFo=ion: DONE in 126.2ms

Does everything looks OK?

How can i check my current mining speed? Mainly asking because of fine tuning GPU threads.

Thank you,

Bukum

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

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

In Russian Windows 10 some error messages displayed incorrectly

Hi,

in russian Windows 10 then, for example, disable network, miner stopped with diagnostic messages like this:

C:\TEMP\minertools-cuda-windows-x86-64>goto _minerstart

C:\TEMP\minertools-cuda-windows-x86-64>tonlib-cuda-cli.exe -V
tonlib-cli build information: [ Commit: 81ca0b8, Date: 2021-11-08 00:19:18 +0300]

C:\TEMP\minertools-cuda-windows-x86-64>tonlib-cuda-cli.exe -v 3 -C global.config.json -e "pminer start kf8gf1PQy4u2kURl-Gz4LbS29eaN4sVdrVQkPO-JL80VhOe6 EQAUAzZsfd4EFEZvgsooc9JRXHvuFr632523HA7g8Sz3oVWsdfww 0 32 0"
[ 3][t 1][2021-11-09 22:18:29.3809655][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '')
Tonlib is inited
[ 1][t 1][2021-11-09 22:18:29.4010984][cuda.cpp:81][!console] [ GPU #0: SM 6.1 NVIDIA GeForce GTX 1080 Ti ]
[ 3][t 1][2021-11-09 22:18:29.4012934][tonlib-cli.cpp:883][!console] Miner #1 created
synchronization: ???
[ 1][t 0][2021-11-09 22:18:29.4036727][adnl-ext-connection.cpp:129][!outconn] Client got error [WindowsError : ╨б╨┤╨╡╨╗╨░╨╜╨░ ╨┐╨╛╨┐╤Л╤В╨║╨░ ╨▓╤Л╨┐╨╛╨╗╨╜╨╕╤В╤М ╨╛╨┐╨╡╤А╨░╤Ж╨╕╤О ╨╜╨░ ╤Б╨╛╨║╨╡╤В╨╡ ╨┤╨╗╤П ╨╜╨╡╨┤╨╛╤Б╤В╤Г╨┐╨╜╨╛╨│╨╛ ╤Е╨╛╤Б╤В╨░. : 10065 : Error on [fd:00000000000001F4]]

Can't compile pow-miner-opencl

I try to compile pow-miner-opencl but without success.
Console output after "/usr/bin/ton$ make -j 8 pow-miner pow-miner-opencl lite-client":

[100%] Built target absl_int128
[100%] Built target crc32c_sse42
[100%] Built target absl_exponential_biased
[100%] Built target absl_civil_time
[100%] Built target crc32c_arm64
[100%] Built target absl_log_severity
[100%] Built target absl_spinlock_wait
[100%] Built target absl_time_zone
[100%] Checking the git repository for changes...
[100%] Built target tdtl
[100%] Built target absl_raw_logging_internal
[100%] Built target crc32c
[100%] Built target absl_bad_optional_access
[100%] Built target absl_bad_variant_access
[100%] Built target absl_cordz_functions
[100%] Built target absl_debugging_internal
[100%] Built target absl_throw_delegate
[100%] Built target absl_base
[100%] Built target absl_low_level_hash
[100%] Built target absl_city
[100%] Built target absl_strings_internal
[100%] Built target absl_malloc_internal
[100%] Built target absl_stacktrace
[100%] Built target absl_demangle_internal
[100%] Built target absl_graphcycles_internal
[100%] Built target absl_strings
[100%] Built target absl_hash
[100%] Built target absl_cord_internal
[100%] Built target absl_symbolize
[100%] Built target absl_time
[100%] Built target check_git
[100%] Built target absl_synchronization
[100%] Built target git
[100%] Built target absl_hashtablez_sampler
[100%] Built target absl_cordz_handle
[100%] Built target absl_raw_hash_set
[100%] Built target absl_cordz_info
[100%] Built target absl_cord
[100%] Built target tdutils
[100%] Built target generate_common
[100%] Built target tdactor
[100%] Built target tl_generate_common
[100%] Built target tddb_utils
[100%] Built target tl_api
[100%] Built target ton_crypto
[100%] Built target src_parser
[100%] Built target tlbc
[100%] Built target tlb_generate_block
[100%] Built target ton_block
[100%] Built target pow-miner-lib
[100%] Built target pow-miner
[100%] Built target absl_log_severity
[100%] Built target crc32c_sse42
[100%] Built target crc32c_arm64
[100%] Built target absl_int128
[100%] Built target absl_exponential_biased
[100%] Built target absl_spinlock_wait
[100%] Built target absl_civil_time
[100%] Built target absl_time_zone
[100%] Built target tdtl
[100%] Checking the git repository for changes...
[100%] Built target crc32c
[100%] Built target absl_raw_logging_internal
[100%] Built target absl_bad_variant_access
[100%] Built target absl_throw_delegate
[100%] Built target absl_bad_optional_access
[100%] Built target absl_debugging_internal
[100%] Built target absl_cordz_functions
[100%] Built target absl_base
[100%] Built target absl_low_level_hash
[100%] Built target absl_malloc_internal
[100%] Built target absl_city
[100%] Built target absl_stacktrace
[100%] Built target absl_demangle_internal
[100%] Built target absl_strings_internal
[100%] Built target absl_strings
[100%] Built target absl_graphcycles_internal
[100%] Built target absl_cord_internal
[100%] Built target absl_hash
[100%] Built target absl_symbolize
[100%] Built target absl_time
[100%] Built target check_git
[100%] Built target git
[100%] Built target absl_synchronization
[100%] Built target absl_cordz_handle
[100%] Built target absl_cordz_info
[100%] Built target absl_hashtablez_sampler
[100%] Built target absl_cord
[100%] Built target absl_raw_hash_set
[100%] Built target tdutils
[100%] Built target generate_common
[100%] Built target tdactor
[100%] Built target tl_generate_common
[100%] Built target tl_api
[100%] Built target tddb_utils
[100%] Built target ton_crypto
[100%] Built target src_parser
[100%] Built target tlbc
[100%] Built target tlb_generate_block
[100%] Built target ton_block
[100%] Built target pow-miner-opencl-lib
[100%] Linking CXX executable pow-miner-opencl
c++: error: OpenCL: No such file or directory
c++: error: unrecognized command line option ‘-framework’
crypto/CMakeFiles/pow-miner-opencl.dir/build.make:140: recipe for target 'crypto/pow-miner-opencl' failed
make[3]: *** [crypto/pow-miner-opencl] Error 1
CMakeFiles/Makefile2:9129: recipe for target 'crypto/CMakeFiles/pow-miner-opencl.dir/all' failed
make[2]: *** [crypto/CMakeFiles/pow-miner-opencl.dir/all] Error 2
CMakeFiles/Makefile2:9136: recipe for target 'crypto/CMakeFiles/pow-miner-opencl.dir/rule' failed
make[1]: *** [crypto/CMakeFiles/pow-miner-opencl.dir/rule] Error 2
Makefile:2636: recipe for target 'pow-miner-opencl' failed
make: *** [pow-miner-opencl] Error 2

tonlib-cuda-cli doens't always terminate itself when having error

Hello, I'm using the systemd automation method described in pow-miner-howto.md. Ubuntu 18.04 (HiveOS)
I'm running several mining instances at once.

One tonlib-cuda-cli instance got an error,
but it didn't terminate itself, so the systemd couldn't restart it.
I found the error 20min later and restarted it manually.
Here's the log:

00:07:53 [tonlib-cli.cpp:751][!PowMiner][&status.is_error()] pminer: [Error : 500 : LITE_SERVER_NETWORKadnl query timeout]
00:27:49 systemd[1]: Stopping NewTON miner0...

Sometime it works (the error message is slightly different though)

00:52:11 tonlib-cuda-cli[10005]: [ 1][t 1][2021-11-16 16:52:11.355709890][tonlib-cli.cpp:751][!PowMiner][&stat.is_error()] pminer: [Error : 500 : LITE_SERVER_NETWORKadnl query timeout(during last block synchronization)]
00:52:16 tonlib-cuda-cli[10005]: [pid 10005] [time 1637081536] Signal: 11
00:52:16 tonlib-cuda-cli[10005]: ------- Stack Backtrace -------
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x277a71)[0x55f055077a71]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x277d81)[0x55f055077d81]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x274e98)[0x55f055074e98]
00:52:16 tonlib-cuda-cli[10005]: /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f15cf5c1980]
00:52:16 tonlib-cuda-cli[10005]: /lib/x86_64-linux-gnu/libpthread.so.0(pthread_rwlock_wrlock+0x12)[0x7f15cf5bb
00:52:16 tonlib-cuda-cli[10005]: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1(CRYPTO_THREAD_write_lock+0x9)[0x7f
00:52:16 tonlib-cuda-cli[10005]: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1(RAND_get_rand_method+0x33)[0x7f15c
00:52:16 tonlib-cuda-cli[10005]: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1(RAND_bytes+0x10)[0x7f15cf96e1b0]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x2a24b6)[0x55f0550a24b6]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x315524)[0x55f055115524]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x25397f)[0x55f05505397f]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x253df0)[0x55f055053df0]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x2675e5)[0x55f0550675e5]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(+0x2581a8)[0x55f0550581a8]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(main+0xe77)[0x55f054f286b7]
00:52:16 tonlib-cuda-cli[10005]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f15ce8a0bf7]
00:52:16 tonlib-cuda-cli[10005]: /usr/bin/ton/tonlib/tonlib-cuda-cli(_start+0x2a)[0x55f054f2dfda]
00:52:16 tonlib-cuda-cli[10005]: -------------------------------
00:52:16 systemd[1]: miner2.service: Main process exited, code=exited, status=1/FAILURE
00:52:16 systemd[1]: miner2.service: Failed with result 'exit-code'.
00:52:21 systemd[1]: miner2.service: Service hold-off time over, scheduling restart.
00:52:21 systemd[1]: miner2.service: Scheduled restart job, restart counter is at 4.
00:52:21 systemd[1]: Stopped NewTON miner2.

Here is one systemd service file if it helps
(I only change device id and name for different instance)
Thank you!

[Unit]
Description=NewTON miner0
After=network.target

[Service]
RestartSec=5
Restart=always
WorkingDirectory=/home/user
ExecStartPre=/bin/sleep 20
ExecStart=/usr/bin/ton/tonlib/tonlib-cuda-cli -v 3 -C /usr/bin/ton/tonlib/global.config.json -e 'pminer start [giver addr] [my wallet] 3 16'

[Install]
WantedBy=multi-user.target
Alias=miner0.service

Installation instructions on Ubuntu

Hello,

I tried to compile this, but got the following:

CMake Error at CMakeLists.txt:356 (get_target_property):
  get_target_property() called with non-existent target
  "absl::flat_hash_map".

Unknown LastBlockState: WindowsError

tonlib-cli build information: [ Commit: b44bffbffa900c56489cc9586c873adaa5b0bd25, Date: 2021-11-16 19:38:32 +0300]

D:\Minertools>tonlib-opencl-cli.exe -v 3 -C global.config.json -e "pminer start kf8SYc83pm5JkGt0p3TQRkuiM58O9Cr3waUtR9OoFq716lN- EQBg1qV2xrkSiaGvpWHF4eiAFU3W0N8H3lidZvWqldCOHBkV 0 4 1"
[ 2][t 1][2021-11-17 00:34:20.9434066][TonlibClient.cpp:2067][!Tonlib][&!config->ignore_cache_] Unknown LastBlockState: [WindowsError : ╨Э╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╤Д╨░╨╣╨╗. : 2 : File "D:\Minertools\713A9A9229AAEB7A587A0A0989A562C53DF123D348D95A219337E723F10B5596.blkstate" can't be opened for reading]
[ 3][t 1][2021-11-17 00:34:20.9443765][TonlibClient.cpp:2096][!Tonlib]  Use init block from USER config: (-1,8000000000000000,16051563):453FCEE980EDFD77FC6311D1B102D2AC959B10D43108EA883566D307411D0F5B:091A340E15A6FB39E0646DA620347A1B9BA2010FE7EB13A0C1846C911B9838C1
[ 2][t 1][2021-11-17 00:34:21.3197622][tonlib-cli.cpp:285][!console]    Tonlib is inited
[ 3][t 1][2021-11-17 00:34:21.3201724][tonlib-cli.cpp:888][!console]    Miner #1 created
[ 3][t 2][2021-11-17 00:34:21.8556244][LastBlock.cpp:327][!LastBlock]   {"workchain":-1,"shard":-9223372036854775808,"seqno":16125009,"root_hash":"Qdgb8uu+EkeJpaHWbvPk0KNDN48eVqPFkYfRsw7j7cU=","file_hash":"6vG0kRYHKrwDLj63Gu5eTY7SxqM2VJCoZ1WdxwhBta0="}
[ 2][t 1][2021-11-17 00:34:21.9036761][tonlib-cli.cpp:801][!PowMiner]   pminer: got new options from kf8SYc83pm5JkGt0p3TQRkuiM58O9Cr3waUtR9OoFq716lN-, seed=24127329334150416603139329848943405142, complexity=54843915773891901752187903866257063577810482185649178927316132
[ 3][t 1][2021-11-17 00:34:21.9040006][tonlib-cli.cpp:806][!PowMiner]   [ expected required hashes for success: 2111302367881585 ]
[ 3][t 1][2021-11-17 00:34:21.9045341][tonlib-cli.cpp:674][!PowMiner]   pminer: start workers

First start with error. Checked firewall, and added .exe files - same problem, checked file access - no changes

Winfows 10 x64

pow-miner-opencl-ubuntu-18.04-x86-64 is not starting (unknown GPU ID)

Ok, all I see is

rabinovitch@chia-plotter:~/tontechio_GPU_miner$ ./pow-miner-opencl-ubuntu-18.04-x86-64
[ OpenCL: platform #0 device #0 GeForce GTX 1080 Ti ]
unknown GPU ID
usage: ./pow-miner-opencl-ubuntu-18.04-x86-64 [-v][-B][-w<threads>][-g<gpu-id>][-G<gpu-threads>] [-t<timeout>] <my-address> <pow-seed> <pow-complexity> <iterations> [<miner-addr> <output-ext-msg-boc>] [-V]
Outputs a valid <rdata> value for proof-of-work testgiver after computing at most <iterations> hashes or terminates with non-zero exit code

Meanwhile clinfo reports the GPU normally:

rabinovitch@chia-plotter:~/tontechio_GPU_miner$ clinfo
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.2.162
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce GTX 1080 Ti
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Driver Version                                  460.91.03
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 03:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               28
  Max clock frequency                             1645MHz
  Compute Capability (NV)                         6.1
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Preferred / native vector sizes
    char                                                 1 / 1
    short                                                1 / 1
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 0 / 0        (n/a)
    float                                                1 / 1
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              11720130560 (10.92GiB)
  Error Correction support                        No
  Max memory allocation                           2930032640 (2.729GiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        1376256 (1.312MiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435456 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x32768 pixels
    Max 3D image size                             16384x16384x16384 pixels
    Max number of read image args                 256
    Max number of write image args                16
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  Invalid device type for platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1

Ubuntu 20.04.3 LTS

OK, let's specify the ID:

rabinovitch@chia-plotter:~/tontechio_GPU_miner$ ./pow-miner-opencl-ubuntu-18.04-x86-64 -g 0 EQAdU8VLS6cRLFBszB93V6S-oaUYEM8qQRuUO-_Y0HYIbxKp
usage: ./pow-miner-opencl-ubuntu-18.04-x86-64 [-v][-B][-w<threads>][-g<gpu-id>][-G<gpu-threads>] [-t<timeout>] <my-address> <pow-seed> <pow-complexity> <iterations> [<miner-addr> <output-ext-msg-boc>] [-V]
Outputs a valid <rdata> value for proof-of-work testgiver after computing at most <iterations> hashes or terminates with non-zero exit code

Well, are all suggested parameters mandatory? Is it possible to see a detailed description of them somewhere, for example, what is and ?

[Error : 0 : Unkwnown query `'pminer`]

hello please tell me what is this error and how to fix it

[ 3][t 1][2021-11-11 09:23:24.1194573][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '')
Tonlib is inited
Query {'pminer} FAILED:
[Error : 0 : Unkwnown query 'pminer]
[ 1][t 1][2021-11-11 09:23:24.1307330][tonlib-cli.cpp:395][!console] FAILED

C:\Users\Ventilyator\Desktop\minertools-cuda-windows-x86-64>pause
Для продолжения нажмите любую клавишу . .
Снимок экрана (3)
.

Использование собственного Lite server

Позволю себе написать вопрос на русском, если вы не против.

Как использовать собственный lite server?

Удаленно я могу к нему подключится используя:

$ lite-client -a <IP>:<TCP-PORT> -p liteserver.pub

Как я понимаю нужно поправить global.config.json оставит там только свой сервер.

Вот пример секции из этого файла:

  "liteservers": [
    {
      "ip": 1137658550,
      "port": 4924,
      "id": {
        "@type": "pub.ed25519",
        "key": "peJTw/arlRfssgTuf9BMypJzqOi7SXEqSPSWiEw2U1M="
      }
    },
    {
      "ip": 84478511,
      "port": 19949,
      "id": {
        "@type": "pub.ed25519",
        "key": "n4VDnSCUuSpjnCyUk9e3QOOd6o0ItSWYbTnW3Wnn8wk="
      }
    },
....
....
}

в каком виде задается ip? Там просто число, или это не ip ?
@type - кокой указывать? Такой же оставлять?
key - что это? Откуда его взять.

Помогите разобраться плиз. Я в свою очередь составлю мануал на 2х языках. Ведь чем больше lite серверов тем лучше для сети

[Error : 500 : LITE_SERVER_NETWORKadnl query timeout]

Здравствуйте, вводные данные такие - у меня есть 2е машины обе находятся в одной сети запитаны с одного роутера, настройки одинаковые:

  1. Ryzen 5 3600, ASRock B450M Pro4, RTX 2060s - майнится все отлично, проблем нет
  2. Q9550, Gigabyte GA-P41T-D3P v1.3, RX 460 - сыпет ошибки ЛСа, тест проходит, а майнинг не запускает по причине ошибки на скрине. Крокозябра расшифровывается как - Подключение не установлено, т.к. конечный компьютер отверг запрос на подключение. Пробовал подключаться через ProtonVPN - результата не дало.
    image
    Подключаюсь на Машине 2 к Машине 1 по RDP(кстати, тоже есть вопрос, почему падает Хеш в ~2 раза при закрытии окна RPD? Приходится всегда держать RPD в открытом состоянии)

error ton-coin "Use blockchain name from MASTER config: 'mainnet' (was '')" no sync

C:\Users\Admin\Desktop\minertools-cuda-windows-x86-64>tonlib-cuda-cli.exe -v 3 -C global.config.json -e "pminer start kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN EQDXRzX4Qnmsjig1nHWw7ATGHbs9qTG251Kholm2x6Q9gd6V 0 32"
[ 3][t 1][2021-11-16 14:27:21.4581118][TonlibClient.cpp:2108][!Tonlib] Use blockchain name from MASTER config: 'mainnet' (was '')
[ 2][t 1][2021-11-16 14:27:21.4650366][tonlib-cli.cpp:285][!console] Tonlib is inited
[ GPU #0: SM 6.1 NVIDIA GeForce GTX 1080 Ti ]
[ GPU #1: SM 6.1 NVIDIA GeForce GTX 1080 Ti ]
[ GPU #2: SM 6.1 NVIDIA GeForce GTX 1080 Ti ]
[ GPU #3: SM 6.1 NVIDIA GeForce GTX 1080 Ti ]
[ 3][t 1][2021-11-16 14:27:21.5548087][tonlib-cli.cpp:885][!console] Miner #1 created
[ 3][t 2][2021-11-16 14:27:21.8455524][tonlib-cli.cpp:1782][!console] Time diff with liteserver: 893.2s
[ 1][t 2][2021-11-16 14:27:21.8458317][tonlib-cli.cpp:904][!console] [Error : 0 : Your system time is out of sync]

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

запускаю майнер как сервис на убунту, выдает ошибку
Nov 6 12:26:28 hive550 tonlib-opencl-cli[24432]: File "global.conf.json" can't be opened for reading
Nov 6 12:26:28 hive550 systemd[1]: miner.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 6 12:26:28 hive550 systemd[1]: miner.service: Failed with result 'exit-code'.

права для файла global.conf.json ставил 777
как я понял не верный аргумент, файл global.conf.json брал последний

Can't run pow-miner-opencl on all available GPUs.

Hi! I try to run pow-miner-opencl with options - g 0,1,2 or -g 0;1;2 or -g 012 or -g 0+1+2 or -g 0&1&2 or -g 0&&1&&2. But can't run all GPU the same on one instance of pow-miner-opencl.
May be it's run only on multiple instances of PMO (pow-miner-opencl)?
For example 1st instance of PMO GPU0 with option -g0, 2nd inst. of PMO GPU1 with option -g1 and 3rd inst. of PMO GPU2 with option -g2. Only that or conditionally maybe ran with -g All?

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: b44bffb, 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 ?

OpenCL test, Error -5 (out of resources)

[ OpenCL: set kernel source (17937 bytes) ]
[ OpenCL: platform #0 device #0 Intel(R) HD Graphics 530 ]
[ OpenCL: platform #1 device #0 NVIDIA GeForce GTX 950M ]
[ OpenCL: create context for platform #1 device #0 NVIDIA GeForce GTX 950M, max work group size is 1024 ]
[ 2][t 0][2021-11-16 03:35:48.1229267][sha256.cpp:29]   [ START MINER, GPU ID: 0, boost factor: 64, throughput: 33554432 ]
[ 3][t 0][2021-11-16 03:35:48.6275444][Miner.cpp:104]   [ mining in progress, passed: 600.0ms, hashes computed: 33554432, instant speed: 66.717 Mhash/s, average speed: 55.928 Mhash/s ]
[ 3][t 0][2021-11-16 03:35:53.1949582][pow-miner.cpp:130]       [ passed: 5167.3ms, hashes computed: 335544320, average speed: 64.936 Mhash/s ]
[ OpenCL: set kernel source (17937 bytes) ]
[ OpenCL: platform #0 device #0 Intel(R) HD Graphics 530 ]
[ OpenCL: platform #1 device #0 NVIDIA GeForce GTX 950M ]
[ OpenCL: create context for platform #1 device #0 NVIDIA GeForce GTX 950M, max work group size is 1024 ]
[ 2][t 0][2021-11-16 03:35:53.3173503][sha256.cpp:29]   [ START MINER, GPU ID: 0, boost factor: 128, throughput: 67108864 ]
[ 3][t 0][2021-11-16 03:35:54.3242911][Miner.cpp:104]   [ mining in progress, passed: 1128.7ms, hashes computed: 67108864, instant speed: 66.754 Mhash/s, average speed: 59.458 Mhash/s ]
[ 3][t 0][2021-11-16 03:35:58.3740143][pow-miner.cpp:130]       [ passed: 5178.4ms, hashes computed: 335544320, average speed: 64.797 Mhash/s ]
[ OpenCL: set kernel source (17937 bytes) ]
[ OpenCL: platform #0 device #0 Intel(R) HD Graphics 530 ]
[ OpenCL: platform #1 device #0 NVIDIA GeForce GTX 950M ]
[ OpenCL: create context for platform #1 device #0 NVIDIA GeForce GTX 950M, max work group size is 1024 ]
[ 2][t 0][2021-11-16 03:35:58.4800850][sha256.cpp:29]   [ START MINER, GPU ID: 0, boost factor: 256, throughput: 134217728 ]
[ 3][t 0][2021-11-16 03:36:00.4918448][Miner.cpp:104]   [ mining in progress, passed: 2117.5ms, hashes computed: 134217728, instant speed: 66.778 Mhash/s, average speed: 63.386 Mhash/s ]
[ 3][t 0][2021-11-16 03:36:05.8656916][Miner.cpp:104]   [ mining in progress, passed: 7491.3ms, hashes computed: 402653184, instant speed: 49.954 Mhash/s, average speed: 53.749 Mhash/s ]
[ 3][t 0][2021-11-16 03:36:08.4986217][pow-miner.cpp:130]       [ passed: 10.1s, hashes computed: 402653184, average speed: 39.771 Mhash/s ]
[ OpenCL: set kernel source (17937 bytes) ]
[ OpenCL: platform #0 device #0 Intel(R) HD Graphics 530 ]
[ OpenCL: platform #1 device #0 NVIDIA GeForce GTX 950M ]
[ OpenCL: create context for platform #1 device #0 NVIDIA GeForce GTX 950M, max work group size is 1024 ]
[ 1][t 0][2021-11-16 03:36:08.5029454][opencl.cpp:106]  Error -5 executing ret on D:\a\pow-miner-gpu\pow-miner-gpu\crypto\util\opencl\opencl.cpp:106 (out of resources)

Windows 10 x64
GeForce GTX 950m

Nvidia with OpenCL version broken test after "boost factor: 256", and load GPU 0.2 - 0.3 %

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 2269a33

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

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.

Platform id

Where in the documentation I can find out what the platform_id is?

Sorry, I didn't find it.

Multiple miner instances

Is it Ok to run several miner instances from the same folder under win OS?
Or it's better to have a separate folder per instance?
Thanks

dangerous lint

/usr/src/pow-miner-gpu/tonlib/tonlib/TonlibClient.cpp: In lambda function:
/usr/src/pow-miner-gpu/tonlib/tonlib/TonlibClient.cpp:4076:22: warning: control reaches end of non-void function [-Wreturn-type]
                      }));
                      ^

OpenCL

When using pow-miner-opencl and choosing any card other than 0, the miner will exit silently.

AMD windows 10 error

Microsoft Windows version 1809
AMD driver 21.10.2

Error

Имя сбойного приложения: tonlib-opencl-cli.exe, версия: 0.0.0.0, метка времени: 0x617add66
Имя сбойного модуля: tonlib-opencl-cli.exe, версия: 0.0.0.0, метка времени: 0x617add66
Код исключения: 0xc000001d
Смещение ошибки: 0x00000000002292a1
Идентификатор сбойного процесса: 0x1558
Время запуска сбойного приложения: 0x01d7cf7d8bda3be4
Путь сбойного приложения: C:\Users\user\Downloads\minertools-opencl-windows-x86-64 (1)\deploy_dir\tonlib-opencl-cli.exe
Путь сбойного модуля: C:\Users\user\Downloads\minertools-opencl-windows-x86-64 (1)\deploy_dir\tonlib-opencl-cli.exe
Идентификатор отчета: 953d5260-b935-4190-9c22-dec145492aea
Полное имя сбойного пакета:
Код приложения, связанного со сбойным пакетом:

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.