xmr-stak-nvidia icon indicating copy to clipboard operation
xmr-stak-nvidia copied to clipboard

Program Failure after connect

Open nichtdu opened this issue 7 years ago • 23 comments

Hey,

GPU 0: unspecified launch failure C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 245

nichtdu avatar Mar 18 '17 11:03 nichtdu

Hey, Probably wrong parameters in config file.

miziel avatar Mar 20 '17 06:03 miziel

Most likely. If you still have a problem with this, please post the config and the hardware that you have.

fireice-uk avatar Mar 20 '17 12:03 fireice-uk

i got a 970ti

"gpu_threads_conf" : [ { "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0, "affine_to_cpu" : false}, ],

it works now but with whooping 50/Hashes

nichtdu avatar Mar 25 '17 23:03 nichtdu

aeh the 8 and 100 ofcourse - copied from wrong config

nichtdu avatar Mar 25 '17 23:03 nichtdu

the default threads and blocks are set for 1070 - which is a more powerful card, try dialling them down to something like 17x30 and see how it does then

fireice-uk avatar Mar 26 '17 00:03 fireice-uk

You should use this settings:

"gpu_threads_conf" : [
{ "index" : 0, "threads" : 24, "blocks" : 39, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false},
],

to get a good performance.

psychocrypt avatar Apr 03 '17 20:04 psychocrypt

@psychocrypt Interesting - what is the reason for the odd 39 block count?

fireice-uk avatar Apr 03 '17 20:04 fireice-uk

970ti has 13 SMX (multiprozessors). It is a Maxwell GPU what menas that the RAM usage must be limited to 2GiB. Each SMX gets 3 blocks thus we calculate simultaneously 13x3x24 = 936 Hashes (1872GB RAM) at the same time. See also this short description.

psychocrypt avatar Apr 07 '17 17:04 psychocrypt

@psychocrypt it seems you snipped the link that you wanted to put in. Do you still have it around (browser history)?

fireice-uk avatar Apr 08 '17 17:04 fireice-uk

I updated the link in my last comment.

psychocrypt avatar Apr 08 '17 18:04 psychocrypt

@psychocrypt Just out of curiosity, is it a hard per card limit or some kind of restriction in the firmware? Can it be gamed using multiple processes?

fireice-uk avatar Apr 08 '17 19:04 fireice-uk

The memory limit is a hard hardware limit depending on the compute architecture. For fermi (sm_2x), kepler(sm_3x) and maxwell(sm_5x) the limit is 2GB (in the most cases, some gpus have a 1GiB limit) and for Pascal (sm_6x) the limit should be 16GB. That is no limit that avoid to use more than 2GB but if you do random memory access on more than 2GB the performance goes done by factor of 6. The reason for the limit is the small TLB and the 512KiB pages. With pascal the pages size is increased to 2MiB. Multiple processes not helps the avoid this limit. I talked a month ago with a NVIDIA dev if there is any workaround available but it is not possible to avoid the TLB misses or change the page size for the gpu.

Maybe I can increase the performance a little bit in the feature by using the fact that some gpus have disabled SMX(multiprocessors), this could be used to increase the number of blocks for those SMX. Depending on the hardware 3-4 SMX shares one TLB and the limit of virtual memory addresses which can be translated differs for each SMX group.

psychocrypt avatar Apr 08 '17 19:04 psychocrypt

@nichtdu Is your issue solved with the provided config options?

psychocrypt avatar Apr 10 '17 17:04 psychocrypt

I get the OP's error on my 940MX, which is Maxwell but is rejected by another miner that usually accepts Maxwell, right now it escapes me which miner :) The card has 2GB RAM. I am using the config suggested by xmr

"gpu_threads_conf" : [ { "index" : 0, "threads" : 64, "blocks" : 9, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false, }, ],

reppolice avatar May 01 '17 23:05 reppolice

@reppolice Do you downloaded thw latest version? Please post the full.command line output.

psychocrypt avatar May 02 '17 05:05 psychocrypt

Hi, I get a similar issue to the OP

GPU 0: unspecified launch failure C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 246

I am running Windows 10, NVIDIA 940MX. I downloaded on the 24 July 2017, but I am not sure how to confirm the version number.

TrojanZA avatar Jul 25 '17 20:07 TrojanZA

@TrojanZA could you please readuce the number of threads maybe by a factor of two. I think your gou runs out of memory but I am not sure.

psychocrypt avatar Jul 25 '17 20:07 psychocrypt

That's done it, thanks!

TrojanZA avatar Jul 25 '17 20:07 TrojanZA

@TrojanZA You should slowly increase the threads to find a optimum without crashes. Thx for the information that the reduction is solving the issue. Now I can think about a solution to avoid such unexpected crashes.

psychocrypt avatar Jul 25 '17 20:07 psychocrypt

Sorry - bit late in the evening. Was looking at CPU miner. Reducing threads did not resolve.

TrojanZA avatar Jul 25 '17 21:07 TrojanZA

44 threads seems to be stable. Thanks. Hash rate is really low 64.9. Any tips to get that higher?

TrojanZA avatar Jul 26 '17 14:07 TrojanZA

im using a Asus strix gtx 1060 oc and Asus strix gtx 1070 oc, and im getting this error:

GPU 0: unspecified launch failure C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 246 GPU 1: unspecified launch failure C:/Users/MAIN/Documents/Visual Studio 2015/Projects/xmr-stak-nvidia/xmr-stak-nvidia/nvcc_code/cuda_extra.cu line 246

And my config is:

"gpu_threads_conf" : [ { "index" : 0, "threads" : 64, "blocks" : 45, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false, }, { "index" : 1, "threads" : 64, "blocks" : 30, "bfactor" : 6, "bsleep" : 25, "affine_to_cpu" : false, }, ],

Thank you,

pwrpt avatar Aug 28 '17 23:08 pwrpt

I changed mine by dialing down my threads from 32 to 8 and changing bfactor to 0 and it no longer closes abruptly. "gpu_threads_conf" : [ { "index" : 0, "threads" : 8, "blocks" : 15, "bfactor" : 0, "bsleep" : 25, "affine_to_cpu" : false, }, ],

faithsloan avatar Nov 01 '17 10:11 faithsloan