CryptoGraphics / VerthashMiner

GPU miner for the Verthash algorithm
GNU General Public License v3.0
76 stars 38 forks source link

Help wanted please about data buffer size #52

Closed Saikatsaha1996 closed 1 year ago

Saikatsaha1996 commented 3 years ago

Any solution please? OpenCL 2.0 available Screenshot_2021-07-06-01-05-48-612_com termux Screenshot_2021-07-06-01-08-17-845_com termux

Saikatsaha1996 commented 3 years ago

My config

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

<Connection Algorithm = "Verthash" Url = "stratum+tcp://verthash.eu.mine.zergpool.com:4534" Username = "MDiEYbtkYWequn9ByFFAeQ3HHZp1ARXsqi" Password = "c=LTC" CoinbaseAddress = "" CoinbaseSignature = "" SSLCertificateFileName = "" Proxy = "" Redirect = "true" LongPoll = "true" LongPollTimeout = "0" Scantime = "5" Retries = "-1" RetryPause = "30" ProtocolDump = "false">

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

OpenCL device config:

#

Available platforms:

#

1. Platform name: QUALCOMM

Index: 0

#

Available devices:

#

DeviceIndex: 0

Name: QUALCOMM Adreno(TM)

PCIeId: not avilable

Platform index: 0

#

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

Saikatsaha1996 commented 3 years ago

It's possible to reduce data size?.. Screenshot_2021-07-06-01-20-41-827_com termux

Saikatsaha1996 commented 3 years ago

No solution available?

Saikatsaha1996 commented 2 years ago

Any solution please? OpenCL 2.0 available Screenshot_2021-07-06-01-05-48-612_com termux Screenshot_2021-07-06-01-08-17-845_com termux

@CryptoGraphics how to reduce VTC data buffer size ?.. mey be need to some modifications for work.. can you tell me please..

Total OpenCL global memory 3.5 GB maximum allocated memory 900MB

Which codes need to be edite ? Can you please help ?

Saikatsaha1996 commented 2 years ago

@CryptoGraphics mey be i should change value in this file.. but actually i don't know anything about coding if you help me it's really very much helpful for me thank you

https://github.com/CryptoGraphics/VerthashMiner/blob/main/src/vhCore/Verthash.cpp

sylvesternumski commented 2 years ago

Are you setting the following environment vars prior to launching? export GPU_FORCE_64BIT_PTR=1 export GPU_USE_SYNC_OBJECTS=1 export GPU_MAX_ALLOC_PERCENT=100 export GPU_SINGLE_ALLOC_PERCENT=100 export GPU_MAX_HEAP_SIZE=100

Saikatsaha1996 commented 2 years ago

@CryptoGraphics mey be i should change value in this file.. but actually i don't know anything about coding if you help me it's really very much helpful for me thank you

Are you setting the following environment vars prior to launching? export GPU_FORCE_64BIT_PTR=1 export GPU_USE_SYNC_OBJECTS=1 export GPU_MAX_ALLOC_PERCENT=100 export GPU_SINGLE_ALLOC_PERCENT=100 export GPU_MAX_HEAP_SIZE=100

Already tried...@sylvesternumski

#!/bin/sh
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_USE_SYNC_OBJECTS=1
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_ALLOC_PERCENT=100
export GPU_MAX_SINGLE_ALLOC_PERCENT=100
export GPU_ENABLE_LARGE_ALLOCATION=100
export GPU_MAX_WORKGROUP_SIZE=1024

But not working because memory available only 900MB for max allocation Total 3.9GB memory

IMG_20220527_174733

Saikatsaha1996 commented 2 years ago

@sylvesternumski can you teach me about how can I change VTC data buffer size by code ? Mey be need to change in this .cpp file for data buffer size.. https://github.com/CryptoGraphics/VerthashMiner/blob/main/src/vhCore/Verthash.cpp

sylvesternumski commented 2 years ago

The data buffer might be limited by hardware. What card are you trying to run this on? In order to support the verthash algorithm, you need at least 2GB dedicated ram on the card itself.

Saikatsaha1996 commented 2 years ago

@sylvesternumski Actually it is android device with full OpenCL 2.0 support, gcn 1.0 comfortable Actually only memory requirment not matching..

That's why I am asking for help.. just wanted to reduce memory size ..

It is experimental .. so if i am getting help i would be very helpful for me..

sylvesternumski commented 2 years ago

Memory requirements are the most import part, the size of the verthash dat file cannot be modified, this is one part of the algorithm that makes it ASIC resistant. You might be able to modify the code to use a file instead but then your hashrate would be severely diminished.

Saikatsaha1996 commented 2 years ago

@sylvesternumski I don't need performance.. i don't need anything.. i am doing it only for experimental purpose only..

Can you help me for reduce verthash dat file ?.. I just want to use..

sylvesternumski commented 2 years ago

You cannot reduce the verthash dat file size. If you really want it to be usable on other platforms, you can attempt to convert the miner to use a file instead of ram, the p2pool and other pools do this for confirming share submissions. I haven't really looked into the code beyond building it as is.

Saikatsaha1996 commented 2 years ago

You cannot reduce the verthash dat file size. If you really want it to be usable on other platforms, you can attempt to convert the miner to use a file instead of ram, the p2pool and other pools do this for confirming share submissions. I haven't really looked into the code beyond building it as is.

@sylvesternumski How can I do this for verthash dat useing ram ?

Saikatsaha1996 commented 2 years ago

You cannot reduce the verthash dat file size. If you really want it to be usable on other platforms, you can attempt to convert the miner to use a file instead of ram, the p2pool and other pools do this for confirming share submissions. I haven't really looked into the code beyond building it as is.

Can you tell me how to do?

Saikatsaha1996 commented 1 year ago

You cannot reduce the verthash dat file size. If you really want it to be usable on other platforms, you can attempt to convert the miner to use a file instead of ram, the p2pool and other pools do this for confirming share submissions. I haven't really looked into the code beyond building it as is.

Memory requirment solved but new error.. Help!

[2022-12-13 08:15:45] INFO  Found 1 OpenCL devices.
[2022-12-13 08:15:45] INFO  Using a configuration file (miner.conf)
[2022-12-13 08:15:45] INFO  Loading verthash data file...
[2022-12-13 08:15:46] INFO  Verthash data file has been loaded succesfully!
[2022-12-13 08:15:46] INFO  Verifying verthash data file...
[2022-12-13 08:15:50] INFO  Verthash data file has been verified succesfully!
[2022-12-13 08:15:50] INFO  Using protocol: Stratum.
[2022-12-13 08:15:50] INFO  Miner has been successfully configured! (Errors: 0, Warnings: 0)
[2022-12-13 08:15:50] INFO  Configured 1(CL) workers
[2022-12-13 08:15:50] INFO  1 miner threads started, using Verthash algorithm.
[2022-12-13 08:15:50] WARN  cl_device(0):Monitoring has been disabled. No backends available!
[2022-12-13 08:15:50] INFO  Starting Stratum on stratum+tcp://verthash.asia.mine.zergpool.com:4534
[2022-12-13 08:15:51] INFO  Stratum difficulty set to 2
[2022-12-13 08:15:51] INFO  Verthash block: 1892428
Failed to read file: kernels/sha3_512_precompute.cl
Failed to create an OpenCL program from source.
[2022-12-13 08:15:52] ERROR cl_device(0):Failed to create a SHA3 precompute program.
[2022-12-13 08:15:52] INFO  cl_device(0):Exiting worker thread id(0)...
[2022-12-13 08:15:52] INFO  All worker threads have been exited.
[2022-12-13 08:15:52] INFO  WorkIO thread has been finished.
[2022-12-13 08:15:52] INFO  Waiting for worker threads to exit...
[2022-12-13 08:15:52] INFO  Waiting for stratum thread to exit...
[2022-12-13 08:15:52] ERROR Stratum connection interrupted
[2022-12-13 08:15:52] DEBUG Stratum thread exit
[2022-12-13 08:15:52] INFO  Freeing allocated memory...
[2022-12-13 08:15:52] INFO  Application has been exited gracefully.
~/VerthashMiner/build $
sylvesternumski commented 1 year ago

kernels/sha3_512_precompute.cl is part of a directory in the distribution that needs to be in the directory you're running the miner. It's the opencl routines that are run on the card to perform the mining.

Saikatsaha1996 commented 1 year ago

kernels/sha3_512_precompute.cl is part of a directory in the distribution that needs to be in the directory you're running the miner. It's the opencl routines that are run on the card to perform the mining.

Android GPU mining 😂🤣 But thank you so much for your fast to last time help

IMG_20221213_085124

sylvesternumski commented 1 year ago

That's just slightly faster than I can hash by hand. Nice, put it into a wallet and have it hash in the background. Might be interesting but my guess is it'll eat the battery. (Maybe only hash when plugged in?)

Saikatsaha1996 commented 1 year ago

That's just slightly faster than I can hash by hand. Nice, put it into a wallet and have it hash in the background. Might be interesting but my guess is it'll eat the battery. (Maybe only hash when plugged in?)

Battery temp 38°C Total watt 1.3 Watts

sylvesternumski commented 1 year ago

Back of the napkin calc tells me that ain't too bad for khash/watt. Is the 1.3 just the gpu?

Saikatsaha1996 commented 1 year ago

Back of the napkin calc tells me that ain't too bad for khash/watt. Is the 1.3 just the gpu?

Sir i know.. actually i am not professional miner.. And it is not for profit.. just for fun only.. My pc given me 450 kh/s with 55watts only.. I just like test with android GPU capabilities.. I am not mining now.. just testing with android GPU.. 🙈

Saikatsaha1996 commented 1 year ago

Back of the napkin calc tells me that ain't too bad for khash/watt. Is the 1.3 just the gpu?

12 hrs reward results with 8.85 kh/s Max temperature 35 to 39°C after 12 hrs

IMG_20221214_194149 Screenshot_2022-12-14-14-01-55-469_com termux