Bitcoin Forum
September 04, 2024, 10:17:43 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminer hangs when mining litecoin through gpu  (Read 3598 times)
POMATu (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 11, 2013, 09:37:06 PM
 #1

Hi,

I am trying to run cgminer on linux machine. I have already tried different versions of reaper, and it don't work (just cant connect to pool). Now I am trying to use cgminer. Everything is ok with mining bitcoins via gpu and also mining litecoins via cpu.
But when I try mining litecoins through gpu it just hang on the message
Code:
[2013-01-12 01:30:47] Started cgminer 2.10.4

I am having nvidia 8500
arch linux x86_64
using notroll.in pool

When I am disabling ncurses with -T option, I am seeing this
Code:
 [2013-01-12 01:34:48] Started cgminer 2.10.4                    
 [2013-01-12 01:34:48] Probing for an alive pool                    
 [2013-01-12 01:34:50] Switching pool 0 http://notroll.in:6332 to stratum+tcp://notroll.in:3333                    

and silence again... Only stratum notifies me about new blocks

here is an verbose output
Code:
 [2013-01-12 01:35:21] CL Platform 0 version: OpenCL 1.1 CUDA 4.2.1                    
 [2013-01-12 01:35:21] Platform 0 devices: 1                    
 [2013-01-12 01:35:21] 0 GeForce 8500 GT                    
 [2013-01-12 01:35:21] Probing for an alive pool                    
 [2013-01-12 01:35:21] Testing pool http://notroll.in:6332                    
 [2013-01-12 01:35:22] JSON-RPC call failed: {
   "code": -1,
   "message": "method not getwork"
}                    
 [2013-01-12 01:35:22] Testing pool 0 stratum stratum+tcp://notroll.in:3333                    
 [2013-01-12 01:35:23] Switching pool 0 http://notroll.in:6332 to stratum+tcp://notroll.in:3333                    
 [2013-01-12 01:35:23] Stratum authorisation success for pool 0                    
 [2013-01-12 01:35:23] Pool 0 http://notroll.in:6332 active                    
 [2013-01-12 01:35:23] Init GPU thread 0 GPU 0 virtual GPU 0                    
 [2013-01-12 01:35:23] CL Platform vendor: NVIDIA Corporation                    
 [2013-01-12 01:35:23] CL Platform name: NVIDIA CUDA                    
 [2013-01-12 01:35:23] CL Platform version: OpenCL 1.1 CUDA 4.2.1                    
 [2013-01-12 01:35:23] List of devices:                    
 [2013-01-12 01:35:23] 0 GeForce 8500 GT                    
 [2013-01-12 01:35:23] Selected 0: GeForce 8500 GT                    
 [2013-01-12 01:35:23] Selecting scrypt kernel      

How can I make it work?
Thanks
POMATu (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 11, 2013, 09:59:39 PM
 #2

Everything is working now. Seems like I should wait for 10 minutes after start, then it starts working.

btw where I can find shaders count table? I need to specify shaders count on my nvidia 8500 gt
debianlinux
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
January 11, 2013, 10:09:17 PM
 #3

A) Provide your command line arguments for threads like this

B) Glad it is working, sometimes it can take a minute or so for the thing to get rolling. 10 minutes is excessive but if you have a high intensity it is possible the screen isn't refreshing until well after launch (if you are driving your display with the same GPU you are hashing on).

C) According to this you get a whopping 16 shaders on a 8500GT (I cannot verify).
norick
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 03, 2013, 11:56:22 PM
Last edit: April 09, 2013, 01:45:26 AM by norick
 #4

Everything is working now. Seems like I should wait for 10 minutes after start, then it starts working.

btw where I can find shaders count table? I need to specify shaders count on my nvidia 8500 gt

Hello,

I have probably a very similar problem. My cgminer does not move forward from the phase of kernel compilation. The same problem actually occurs with reaper miner as well. There is no point in waiting, as I waited usually about one hour or more and it did not help.
I use gentoo linux distribution. I have never managed to run cgminer without faults, when I try to mine bitcoin it crashes. Therefore, for bitcoin I use rather phoenix miner (and stratum proxy), it works very well.
My card is Radeon HD 5850. I use ati-drivers/catalyst 12.8. I have jansson-2.3.1 installed.
I compiled cgminer from sources using following configuration:
CFLAGS="-O2 -Wall -march=native" ./configure --enable-scrypt --without-libudev --without-curses
nevertheless it did not work even when --enable-scrypt was the only option.

cgminer output:
Code:
~/scripts $ ./cgminer-2.11.3/cgminer --scrypt -o stratum+tcp://notroll.in:3333 -u USER -p PASS --thread-concurrency 5600 -I 18 -g 1 -w 256 -d 0 --verbose -D
 [2013-04-03 23:19:29] Started cgminer 2.11.3                    
 [2013-04-03 23:19:29] CL Platform 0 vendor: Advanced Micro Devices, Inc.                    
 [2013-04-03 23:19:29] CL Platform 0 name: ATI Stream                    
 [2013-04-03 23:19:29] CL Platform 0 version: OpenCL 1.1 ATI-Stream-v2.3 (451)                    
 [2013-04-03 23:19:29] Platform 0 devices: 1                    
 [2013-04-03 23:19:29]  0       Cypress                    
 [2013-04-03 23:19:29] CL Platform 1 vendor: Intel(R) Corporation                    
 [2013-04-03 23:19:29] CL Platform 1 name: Intel(R) OpenCL                    
 [2013-04-03 23:19:29] CL Platform 1 version: OpenCL 1.1 LINUX                    
 [2013-04-03 23:19:29] Error -1: Getting Device IDs (num)                    
 [2013-04-03 23:19:29] CL Platform 2 vendor: Advanced Micro Devices, Inc.                    
 [2013-04-03 23:19:29] CL Platform 2 name: AMD Accelerated Parallel Processing                    
 [2013-04-03 23:19:29] CL Platform 2 version: OpenCL 1.2 AMD-APP (938.2)                    
 [2013-04-03 23:19:29] Platform 2 devices: 1                    
 [2013-04-03 23:19:29]  0       Cypress                    
 [2013-04-03 23:19:29] GPU 0 iAdapterIndex 0 strUDID 256:26777:4098:57670:5963 iBusNumber 1 iDeviceNumber 0 iFunctionNumber 0 iVendorID 4098 strAdapterName  ATI Radeon HD 5800 Series                      
 [2013-04-03 23:19:29] GPU 0 ATI Radeon HD 5800 Series  hardware monitoring enabled                    
 [2013-04-03 23:19:29] Probing for an alive pool                    
 [2013-04-03 23:19:29] Testing pool stratum+tcp://notroll.in:3333                    
 [2013-04-03 23:19:29] Popping work to stage thread                    
 [2013-04-03 23:19:29] JSON-RPC decode failed: [
   20,
   "_stratum_mining_subscribe() takes 1 positional argument but 2 were given",
   "Traceback (most recent call last):\n  File \"/root/eloipool/stratumserver.py\", line 91, in found_terminator\n    rv = getattr(self, funcname)(*rpc['params'])\nTypeError: _stratum_mining_subscribe() takes 1 positional argument but 2 were given\n"
]                    
 [2013-04-03 23:19:29] Failed to resume stratum, trying afresh                    
 [2013-04-03 23:19:30] Pool 0 stratum session id: 50a698a1d57f00001                    
 [2013-04-03 23:19:30] Pool 0 difficulty set to 32.000427                    
 [2013-04-03 23:19:30] Stratum authorisation success for pool 0                    
 [2013-04-03 23:19:30] Pool 0 stratum+tcp://notroll.in:3333 alive                    
 [2013-04-03 23:19:30] Pushing ping to thread 0                    
 [2013-04-03 23:19:30] Init GPU thread 0 GPU 0 virtual GPU 0                    
 [2013-04-03 23:19:30] CL Platform vendor: Advanced Micro Devices, Inc.                    
 [2013-04-03 23:19:30] CL Platform name: ATI Stream                    
 [2013-04-03 23:19:30] CL Platform version: OpenCL 1.1 ATI-Stream-v2.3 (451)                    
 [2013-04-03 23:19:30] List of devices:                    
 [2013-04-03 23:19:30]  0       Cypress                    
 [2013-04-03 23:19:30] Selected 0: Cypress                    
 [2013-04-03 23:19:31] Preferred vector width reported 4                    
 [2013-04-03 23:19:31] Max work group size reported 256                    
 [2013-04-03 23:19:31] Max mem alloc size is 268435456                    
 [2013-04-03 23:19:31] Selecting scrypt kernel                    
 [2013-04-03 23:19:31] GPU 0: selecting lookup gap of 2                    
 [2013-04-03 23:19:31] No binary found, generating from source                    
 [2013-04-03 23:19:31] Setting worksize to 256                    
 [2013-04-03 23:19:31] cl_amd_media_ops found, setting BITALIGN                    
 [2013-04-03 23:19:31] BFI_INT patch requiring device found, patched source with BFI_INT                    
 [2013-04-03 23:19:31] CompilerOptions: -D LOOKUP_GAP=2 -D CONCURRENT_THREADS=5600 -D WORKSIZE=256 -D BITALIGN -D BFI_INT -D GOFFSET                    
 [2013-04-03 23:27:07] Generated stratum merkle a64a33a97c83b39facc7aa0aa2f3cc9d13c149bc0d87f4a1824163702318d6fa                    
 [2013-04-03 23:27:07] Generated stratum header 000000029b27a8cb316f5f81989b117936a8455660a07fc7f2ff4e5a01068d7900000000a64a33a97c83b39facc7aa0aa2f3cc9d13c149bc0d87f4a1824163702318d6fa515c9eb51c01abdd00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-03 23:27:07] Work job_id 1365024437 395 nonce2 00000000 ntime 515c9eb5                    
 [2013-04-03 23:27:07] Generated target 000000000000000000000000000000000000000000000000000000f1ff070000                    
 [2013-04-03 23:27:07] New block: 8d79f2ff4e5a60a0... diff 10M                    
 [2013-04-03 23:27:07] Stratum from pool 0 detected new block                    
 [2013-04-03 23:36:24] Generated stratum merkle a81ca9999e8ed3ccbf18987ffce115b789f0078a96e9274e1ca728a26f90b53c                    
 [2013-04-03 23:36:24] Generated stratum header 00000002499f94ae906b3d2c5a20a929076392ecf113d28c1ddadaecb28d0717221956c8a81ca9999e8ed3ccbf18987ffce115b789f0078a96e9274e1ca728a26f90b53c515ca0e21c01abdd00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-03 23:36:24] Work job_id 1365024994 412 nonce2 00000000 ntime 515ca0e2                    
 [2013-04-03 23:36:24] Generated target 000000000000000000000000000000000000000000000000000000f1ff070000                    
 [2013-04-03 23:36:24] New block: 07171ddadaecf113... diff 10M                    
 [2013-04-03 23:36:24] Stratum from pool 0 detected new block                    
 [2013-04-03 23:38:16] Generated stratum merkle 7342d06abf317792d405cd02590faac36569933f149bd37a8d9c2a1842fcf031                    
 [2013-04-03 23:38:16] Generated stratum header 00000002aea580b5cd81c644913690d5b6c6883893af3c2e891794a05ab20ee46c808b557342d06abf317792d405cd02590faac36569933f149bd37a8d9c2a1842fcf031515ca1521c01abdd00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-03 23:38:16] Work job_id 1365025106 416 nonce2 00000000 ntime 515ca152                    
 [2013-04-03 23:38:16] Generated target 000000000000000000000000000000000000000000000000000000f1ff070000                    
 [2013-04-03 23:38:16] New block: 0ee4891794a093af... diff 10M

............... long ...............

[2013-04-04 00:02:08] New block: f41f241b54fe04bc... diff 10M                    
 [2013-04-04 00:02:08] Stratum from pool 0 detected new block                    
 [2013-04-04 00:03:41] Generated stratum merkle 49baf97f455c726937779c2906db5bdf7bacae47bd826d80a37688f0cbb6bf43                    
 [2013-04-04 00:03:41] Generated stratum header 00000002415056b3f51fe312c93b164b8d0336fcd6239c427bdd0fc4008cf9cc0000000049baf97f455c726937779c2906db5bdf7bacae47bd826d80a37688f0cbb6bf43515ca7471c01abdd00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-04 00:03:41] Work job_id 1365026631 463 nonce2 00000000 ntime 515ca747                    
 [2013-04-04 00:03:41] Generated target 000000000000000000000000000000000000000000000000000000f1ff070000                    
 [2013-04-04 00:03:41] Deleted block 6 from database                    
 [2013-04-04 00:03:41] New block: f9cc7bdd0fc4d623... diff 10M                    
 [2013-04-04 00:03:41] Stratum from pool 0 detected new block                    
^C
Compilation terminated.


I built reaper also from a source, following the readme file without having to face any problems.
Reaper (I gave kernel about 2 hours to compile) output:

Code:
reaper $ ./reaper 
\|||||||||||||||||||||/
-  Reaper v13 64-bit  -
-       BETA 4        -
-   coded by mtrlt    -
/|||||||||||||||||||||\

/----------------------------------------------\
| Please donate to support Reaper development! |
|----------------------------------------------|
|   SLC: sdJMdNAEaJMVaxPFxaWibty9bec6Y4ubJK    |
|   BTC: 1DjMcD5oQUap7kXrwa9J8S5esMryUs777o    |
|   LTC: LZ5xurMLgdEzeuXuJvYB4DwyprCC1asfmp    |
\----------------------------------------------/


I'm now mining litecoin!
Share thread started

... line repeats many times ...

Share thread started
List of platforms:
        0       ATI Stream
        1       Intel(R) OpenCL
        2       AMD Accelerated Parallel Processing
Using platform number 0

Using device 0
        0       Cypress
Compiling kernel... this could take up to 2 minutes.
^C
Compilation terminated.


Code:
cpu_mining_threads 0
aggression 10
worksize 64
platform 0
device 0

kernel reaper.cl
save_binaries yes
enable_graceful_shutdown no
long_polling yes

host ltc.kattare.com
port 9332
user USER
pass PASS

mine litecoin

Code:
host ltc.kattare.com
port 9332
user USER
pass PASS


protocol litecoin

worksize 256
aggression 10
threads_per_gpu 1
sharethreads 18
lookup_gap 2
gpu_thread_concurrency 5600

Given that there is a problem with both cgminer and reaper and this problem occurs at the same moment, my hypothesis is that it is rather a system issue than a miner issue.
Any ideas? Thanks.

EDIT: Solved by upgrading AMD-APP-SDK and ati-drivers to the latest version.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!