CUDA miner starts and exists, do nothing

Hi there,

I built a cuda29 bin and try to start mining with CUDA.

I can see cuda29 spawning in nvidia-smi but it stops after a few seconds, here is some logs:

epoch.log
2018-11-28 22:39:52.583 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:53.481 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:54.391 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:55.306 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:56.218 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:57.134 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:58.055 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:58.961 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:39:59.867 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:40:00.773 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:40:01.691 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining
2018-11-28 22:40:02.596 [info] <0.1222.0>@aec_conductor:start_mining:674 Starting mining

epoch_pow_cuckoo.log
2018-11-28 22:40:38.021 [info] <0.4684.0>@aec_pow_cuckoo:generate_int:183 Executing cmd: "./cuda29 -h 55565746687252315261576E77746B4B4A4473524A4666676B626F526150772B78546D686B34654F776D4D3D7A78756E6D4C53346B626B3D "
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 GeForce GTX 1080 Ti with 10GB @ 352 bits x 5505MHz
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 Looking for 42-cycle on cuckoo30(“UVWFhrR1RaWnwtkKJDsRJFfgkboRaPw+xTmhk4eOwmM=zxunmLS4kbk=”,0) with 50% edges, 64*64 buckets, 176 trims, and 64 thread blocks.
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 Using 6976MB of global memory.
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 nonce 0 k0 k1 k2 k3 19f6c78368da1a 847eb84505a5b8bc 45a9b9b29d4c950d d14db41135c2dbec
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 Seeding completed in 54 + 38 ms
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 4-cycle found
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 28-cycle found
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 8-cycle found
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 8-cycle found
2018-11-28 22:40:38.922 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 134-cycle found
2018-11-28 22:40:38.923 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 82-cycle found
2018-11-28 22:40:38.923 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 2-cycle found
2018-11-28 22:40:38.923 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 findcycles edges 67326 time 27 ms total 293 ms
2018-11-28 22:40:38.923 [debug] <0.4684.0>@aec_pow_cuckoo:parse_generation_result:448 0 total solutions
2018-11-28 22:40:38.924 [debug] <0.4684.0>@aec_pow_cuckoo:generate_int:155 No cuckoo solution found
2018-11-28 22:40:38.924 [debug] <0.4686.0>@aec_pow_cuckoo:generate:78 Generating solution for data hash <<81,85,133,134,180,117,69,165,167,194,217,10,36,59,17,36,87,224,145,186,17,104,252,62,197,57,161,147,135,142,194,99>> and nonce 13371671854434425808 with target 521307139.
2018-11-28 22:40:38.924 [info] <0.4686.0>@aec_pow_cuckoo:generate_int:183 Executing cmd: "./cuda29 -h 55565746687252315261576E77746B4B4A4473524A4666676B626F526150772B78546D686B34654F776D4D3D3042756E6D4C53346B626B3D "

if I start the command by hand it seems to run fine, says no solution found and exit:
lib/aecuckoo-0.1.0/priv/bin/cuda29 -h 55565746687252315261576E77746B4B4A4473524A4666676B626F526150772B78546D686B34654F776D4D3D3042756E6D4C53346B626B3D
GeForce GTX 1080 Ti with 10GB @ 352 bits x 5505MHz
Looking for 42-cycle on cuckoo30(“UVWFhrR1RaWnwtkKJDsRJFfgkboRaPw+xTmhk4eOwmM=0BunmLS4kbk=”,0) with 50% edges, 64*64 buckets, 176 trims, and 64 thread blocks.
Using 6976MB of global memory.
nonce 0 k0 k1 k2 k3 aaf05f385add71b9 fa284016c7082ba7 d397c9d5db27f9a9 a9bdde1632b89d7c
Seeding completed in 60 + 48 ms
6-cycle found
298-cycle found
510-cycle found
812-cycle found
findcycles edges 66058 time 25 ms total 315 ms
0 total solutions

What’s going on ?

Thanks

same happens to me

2018-11-28 22:21:37.062 [error] <0.1406.0>@aec_pow_cuckoo:wait_for_result:390 OS process died: {status,127}
2018-11-28 22:21:37.091 [debug] <0.1521.0>@aec_pow_cuckoo:generate:78 Generating solution for data hash <<76,119,99,100,218,39,228,238,230,2,101,96,80,209,147,4,231,211,1,247,114,146,226,1,167,150,10,4,74,180,77,161>> and nonce 10608173307956976322 with target 521275956.
2018-11-28 22:21:37.091 [info] <0.1521.0>@aec_pow_cuckoo:generate_int:183 Executing cmd: “./cuda29 -h 5448646A5A4E6F6E354F376D416D5667554E4754424F6654416664796B7549427035594B424571305461453D776C714F5347764E4E354D3D -d 0,1,2,3,4”
2018-11-28 22:21:37.093 [error] <0.1521.0>@aec_pow_cuckoo:wait_for_result:375 ERROR: /bin/bash: ./cuda29: No such file or directory

Well no, it’s different, you haven’t build the cuda miner, the file is missing

Btw, is it possible to check ak_2BnQjXad1mRqn6BfmSbbSac68v4F3cBAfKhDiWoWZ7dNeBQ8H7 is existing on main net ?

This looks perfectly normal… Each time it logs Starting mining it starts another mining attempt! It will stop between attempts, that is how it is built.

Yes, you can use http://18.130.106.60:3013/v2/accounts/ak_2BnQjXad1mRqn6BfmSbbSac68v4F3cBAfKhDiWoWZ7dNeBQ8H7 (where 18.130.106.60 is one of the seed nodes, you could choose any of them) and check.

You could also do http against your local node!

You need to copy the built cuda29 binary to the correct folder:

Ok so mining is working fine expect I’m doing this for free as I don’t have an address in mainnet…

How do I create an address ? I used the python SDK as stated in some doc but clearly it looks like it’s doing nothing except putting dumping some hashes to a json file.

Thanks

@hanssv2 I have a different question:

I cannot curl http://127.0.0.1:3013/v2/... - I get the connection refused error.

But it works with

curl http://127.0.0.1:8080/v2/...

I am in sync with the main chain. Is that a problem later on e.g. reward distribution ?

bin/epoch keys_gen my_secret_password

The way an account is created is by sending tokens to it (or being part of the genesis block token migration) or by mining a block and get a reward. So if you have this account pubkey as your beneficiary and you mine a block the account will be created and you well receive the reward.

1 Like

No, it is not a problem with respect to reward distribution, the miner reward is credited (after the block reward delay) to the account set as the beneficiary.

1 Like

Ok, so you confirm running “aecli account create wallet.json” is enough to own a private key. Setting the associated pub one to mining beneficiary should be fine

1 Like

Note, that generating keys using epoch command is rather intended for testing purposes - it might not be straightforward to extract generated private key from generated_keys to use it in a wallet. As documentation says, use a proper wallet/mechanism for your mainnet tokens - e.g., AirGap wallet.

1 Like