[Mining] 4+ GPS with 1080ti but generating no shares [Solved]

My card seems to be mining but doesn’t seem to be producing any shares. I’ve tried with a pool and on my local node but after a few hours no shares have been produced. Am I being impatient, really unlucky, or have I done something wrong? How many shares/hr do people usually see with 1 difficulty on 1080ti’s? I’m not posting this to gitter because I don’t have/want gitlab/twitter/github accounts and hope that others can search here if they have the same issue as me. Thanks!

Edit: I was able to solve the problem by commenting out the given ntrims parameter in
[mining.miner_plugin_config.parameters] for the mean cuda miner

Edit 2: The issue is addressed here: CUDA mining bug identified

OS: Ubuntu 18.04
GPU: GTX 1080ti

$ nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

NVIDIA SMI Ouput While Mining:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.77                 Driver Version: 390.77                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:01:00.0 Off |                  N/A |
| 49%   82C    P2   176W / 250W |   7658MiB / 11178MiB |     99%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1329      G   /usr/lib/xorg/Xorg                           354MiB |
|    0      1504      G   /usr/bin/gnome-shell                         164MiB |
|    0     16533      C   ./target/debug/grin-miner                   7135MiB |
+-----------------------------------------------------------------------------+

Below is from grin-miner.log showing the gpu receiving jobs and working

Dec 06 16:25:11.027 DEBG Received request type: job
Dec 06 16:25:11.027 INFO Got a new job: JobTemplate { height: 71216, job_id: 0, difficulty: 1, pre_pow: "00010000000000011630000000005c09bde60384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa361d675537ee7efe78f0d32bc9cbfb34c53ec5e010332e70162b0933878d59a8d736c1a1ffdac597f5422fe03ad3b1860f395dff0d2232eebb7761b08aa15f362feff4d97ff3fa6d6a65d88f2ef8ebfcb403e4d7a0538885f99e36af7ac4d2d8589c3b497caf990257a37d2e43f96e5f4422fa88ca30dc149fa8b3a5d0bbc3af7000000000005bc3c000000000003f33b000000011e547dd40000049e" }
Dec 06 16:25:11.050 DEBG Miner received message: ReceivedJob(71216, 0, 1, "00010000000000011630000000005c09bde60384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa361d675537ee7efe78f0d32bc9cbfb34c53ec5e010332e70162b0933878d59a8d736c1a1ffdac597f5422fe03ad3b1860f395dff0d2232eebb7761b08aa15f362feff4d97ff3fa6d6a65d88f2ef8ebfcb403e4d7a0538885f99e36af7ac4d2d8589c3b497caf990257a37d2e43f96e5f4422fa88ca30dc149fa8b3a5d0bbc3af7000000000005bc3c000000000003f33b000000011e547dd40000049e")
Dec 06 16:25:11.050 DEBG Pause message sent
Dec 06 16:25:11.050 DEBG Resume message sent
Dec 06 16:25:12.041 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.228808293s; Graphs per second: 4.370 - Total Attempts: 16170
Dec 06 16:25:12.041 INFO Mining: Cuck(at)oo at 4.370470960158774 gps (graphs per second)
Dec 06 16:25:15.018 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.228790516s; Graphs per second: 4.371 - Total Attempts: 16183
Dec 06 16:25:15.018 INFO Mining: Cuck(at)oo at 4.37081054531124 gps (graphs per second)
Dec 06 16:25:18.020 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.230257905s; Graphs per second: 4.343 - Total Attempts: 16196
Dec 06 16:25:18.020 INFO Mining: Cuck(at)oo at 4.3429562168560505 gps (graphs per second)
Dec 06 16:25:21.105 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.229981163s; Graphs per second: 4.348 - Total Attempts: 16210
Dec 06 16:25:21.105 INFO Mining: Cuck(at)oo at 4.348182203078954 gps (graphs per second)
Dec 06 16:25:24.081 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.230147941s; Graphs per second: 4.345 - Total Attempts: 16223
Dec 06 16:25:24.081 INFO Mining: Cuck(at)oo at 4.345031268387493 gps (graphs per second)
Dec 06 16:25:27.060 DEBG Received message: {"id":"Stratum","jsonrpc":"2.0","method":"job","params":{"difficulty":1,"height":71216,"job_id":1,"pre_pow":"00010000000000011630000000005c09bdf50384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa361d675537ee7efe78f0d32bc9cbfb34c53ec5e010332e70162b0933878d59a8d736c1a1ffdac597f5422fe03ad3b1860f395dff0d2232eebb7761b08aa15f36293654992f7dd406b78219c6c50629f60e2db8f751f2b8ecaf3f7a214cc936d6c89c3b497caf990257a37d2e43f96e5f4422fa88ca30dc149fa8b3a5d0bbc3af7000000000005bc3c000000000003f33b000000011e547dd40000049e"}}

Dec 06 16:25:27.060 DEBG Received request type: job
Dec 06 16:25:27.060 INFO Got a new job: JobTemplate { height: 71216, job_id: 1, difficulty: 1, pre_pow: "00010000000000011630000000005c09bdf50384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa361d675537ee7efe78f0d32bc9cbfb34c53ec5e010332e70162b0933878d59a8d736c1a1ffdac597f5422fe03ad3b1860f395dff0d2232eebb7761b08aa15f36293654992f7dd406b78219c6c50629f60e2db8f751f2b8ecaf3f7a214cc936d6c89c3b497caf990257a37d2e43f96e5f4422fa88ca30dc149fa8b3a5d0bbc3af7000000000005bc3c000000000003f33b000000011e547dd40000049e" }
Dec 06 16:25:27.063 DEBG Miner received message: ReceivedJob(71216, 1, 1, "00010000000000011630000000005c09bdf50384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa361d675537ee7efe78f0d32bc9cbfb34c53ec5e010332e70162b0933878d59a8d736c1a1ffdac597f5422fe03ad3b1860f395dff0d2232eebb7761b08aa15f36293654992f7dd406b78219c6c50629f60e2db8f751f2b8ecaf3f7a214cc936d6c89c3b497caf990257a37d2e43f96e5f4422fa88ca30dc149fa8b3a5d0bbc3af7000000000005bc3c000000000003f33b000000011e547dd40000049e")
Dec 06 16:25:27.063 DEBG Pause message sent
Dec 06 16:25:27.063 DEBG Resume message sent
Dec 06 16:25:27.063 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.227741111s; Graphs per second: 4.391 - Total Attempts: 16236
Dec 06 16:25:27.063 INFO Mining: Cuck(at)oo at 4.390950740553821 gps (graphs per second)
Dec 06 16:25:30.041 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.229603845s; Graphs per second: 4.355 - Total Attempts: 16249
Dec 06 16:25:30.041 INFO Mining: Cuck(at)oo at 4.355327760299485 gps (graphs per second)
Dec 06 16:25:33.015 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.224843467s; Graphs per second: 4.448 - Total Attempts: 16262
Dec 06 16:25:33.015 INFO Mining: Cuck(at)oo at 4.4475386069367095 gps (graphs per second)
Dec 06 16:25:36.102 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.226490996s; Graphs per second: 4.415 - Total Attempts: 16275
Dec 06 16:25:36.102 INFO Mining: Cuck(at)oo at 4.415186553376277 gps (graphs per second)
Dec 06 16:25:39.082 DEBG Mining: Plugin 0 - Device 0 (GeForce GTX 1080 Ti) at Cuck(at)oo29 - Status: OK : Last Graph time: 0.227838224s; Graphs per second: 4.389 - Total Attempts: 16288
Dec 06 16:25:39.082 INFO Mining: Cuck(at)oo at 4.389079156445671 gps (graphs per second)
Dec 06 16:25:40.079 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"status","params":null}
Dec 06 16:25:41.080 DEBG Received message: {"id":"Stratum","jsonrpc":"2.0","method":"job","params":{"difficulty":1,"height":71216,"job_id":2,"pre_pow":"00010000000000011630000000005c09be040384c0d8dcae9cb91ff7cadca2eb860276f54ba4d9077721bccff0160ef23dece42d04c1dbd291fe8ec24010adeeebce3676697349a62b99ef847dcd52aceaa3cf4aaa43b2aabc3b2d098838cc2a8c787376171c721c9054fc0028e36671d90a58586ccc18be9794d172d2cb92326135240c86d377aec85867a9d9186205138b05de8637a474d917c470492c306d05a8201d2dfa301c6e94d480fc893c6e8a86c0ddf0d9914d5a6fc2852b7fd0d57aae23366f46fdc6b63537829de9eec5016f000000000005bc40000000000003f33e000000011e547dd40000049e"}}

Nothing about finding/sending shares in the grin-miner.log over a few hours of miner running. Hopefully I’ve provided enough info for someone to help me find what I’m not seeing. Thanks again!

What (Git) commit hash are you using and would you mind sharing the Cargo.toml file from your grin-miner directory?

Also, you should consider joining our Gitter channel if you want the fastest response.

~/grin-miner$ git rev-parse HEAD
247f6a2970112ecde265b9b17aa365f641acb80e

~/grin-miner$ cat Cargo.toml

[package]
name = "grin-miner"
version = "0.4.0"
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
publish = false
build = "src/build/build.rs"
autobins = false

[workspace]
members = ["config", "util", "plugin"]

[[bin]]
name = "grin-miner"
path = "src/bin/grin_miner.rs"

[dependencies]
backtrace = "0.3"
bufstream = "~0.1"
serde = "1"
serde_derive = "1"
serde_json = "1"
slog = { version = "~2.1", features = ["max_level_trace", "release_max_level_trace"] }
term = "0.4"
time = "0.1"
cursive = "0.9.0"

grin_miner_util = { path = "./util" }
grin_miner_plugin = { path = "./plugin" }
grin_miner_config = { path = "./config" }
#cuckoo_miner = { path = "./cuckoo-miner" }

#use this alternative inclusion below to build cuda plugins
cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins"]}
#or to build avx2 CPU plugins
#cuckoo_miner = { path = "./cuckoo-miner", features = ["build-mean-avx2"]}
#or to build both
#cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins","build-mean-avx2"]}

[build-dependencies]
built = "0.2"

Thanks for any assistance @CaptainCrypto

Sorry, I think the grin-miner.toml file is actually what we need.

~/grin-miner$ cat grin-miner.toml

# Sample Server Configuration File for Grin-Miner
#
# Grin-Miner will look for this file in these places: in the following
# order:
#
# -The working directory
# -The directory in which the executable resides

#########################################
### LOGGING CONFIGURATION             ###
#########################################

[logging]

# Whether to log to stdout
log_to_stdout = true

# Log level for stdout: Critical, Error, Warning, Info, Debug, Trace
stdout_log_level = "Info"

# Whether to log to a file
log_to_file = true

# Log level for file: Critical, Error, Warning, Info, Debug, Trace
file_log_level = "Debug"

# Log file path
log_file_path = "grin-miner.log"

# Whether to append to the log file (true), or replace it on every run (false)
log_file_append = true

#########################################
### MINING CLIENT CONFIGURATION       ###
#########################################

[mining]

# whether to run the tui
run_tui = true

# listening grin stratum server url
stratum_server_addr = "127.0.0.1:13416"

# login for the stratum server (if required)
#stratum_server_login = "http://192.168.1.100:13415"

# password for the stratum server (if required)
#stratum_server_password = "x"

#The directory in which mining plugins are installed
#if not specified, grin miner will look in the directory /deps relative
#to the executable

#miner_plugin_dir = "target/debug/plugins"

#############################################
### CUCK(AT)OO MINER PLUGIN CONFIGURATION ###
#############################################

# Multiple plugins can be specified, (e.g. a cpu
# miner and a gpu miner running in parallel)
# Use a single plugin instance per device, as 
# demonstrated below

# Multiple instances of the same plugin can be loaded
# and used with different devices. On CPU plugins
# you'll likely only be using a single instance
# but in CUDA plugins the device number can be set
# corresponding to the device ID. (use nvidia-smi to find this)

### CUCKATOO CPU SOLVERS

### cuckatoo_mean_compat_cpu
# The fastest cpu algorithm, but consumes the most memory

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_compat_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

### cuckatoo_mean_avx2_cpu
# As above, but for processors supporting avx2
# To build and use this plugin, make sure the following build feature
# is enabled in Cargo.toml:
# cuckoo_miner = { path = "./cuckoo-miner", features = ["build-mean-avx2"]}

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_avx2_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

### cuckatoo_lean_cpu
# Low memory requirements, but very slow

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_lean_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

# CUCKATOO CUDA SOLVERS
#
# These plugins are not built by default. To build:
#1) Ensure the latest cuda toolkit is installed
#   (nvcc should be in your PATH)
#   Wrong gcc? install gcc-5 g++-5; export CC=`which gcc-5`; # then build
#2) Ensure the 'build-cuda-plugin' feature is included in Cargo.toml, e.g:
#   cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins"]}
#
# Parameters can be set individually for each device by using multiple 
# instance of each plugin.  device 0 is used by default
#

### mean cuda miner
# The fastest cuda solver. If you're getting 'out of memory' errors 
# when trying to run this solver, increase the 'expand' parameter
# by 1, and try again. This should work on 6 GB + Cards using
# the expand parameter, 8GB+ withoug

[[mining.miner_plugin_config]]
plugin_name = "cuckaroo_mean_cuda_29"

[mining.miner_plugin_config.parameters]
device = 0
ntrims = 68
expand = 0
genablocks = 4096
genatpb = 256
genbtpb = 128
trimtpb = 512
tailtpb = 1024
recoverblocks = 1024
recovertpb = 1024

# e.g. To enable multiple devices (copy params from above as needed)

#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_mean_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 1

### lean cuda miner
# much slower cuda solver, but should be usable on low-memory cards
#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_lean_cuda_29"
#device = 0
#blocks = 128
#tpb = 128

Thanks again @CaptainCrypto

Edit: solved by changing to following grin-miner.toml

# Sample Server Configuration File for Grin-Miner
#
# Grin-Miner will look for this file in these places: in the following
# order:
#
# -The working directory
# -The directory in which the executable resides

#########################################
### LOGGING CONFIGURATION             ###
#########################################

[logging]

# Whether to log to stdout
log_to_stdout = true

# Log level for stdout: Critical, Error, Warning, Info, Debug, Trace
stdout_log_level = "Info"

# Whether to log to a file
log_to_file = true

# Log level for file: Critical, Error, Warning, Info, Debug, Trace
file_log_level = "Debug"

# Log file path
log_file_path = "grin-miner.log"

# Whether to append to the log file (true), or replace it on every run (false)
log_file_append = true

#########################################
### MINING CLIENT CONFIGURATION       ###
#########################################

[mining]

# whether to run the tui
run_tui = true

# listening grin stratum server url
stratum_server_addr = "127.0.0.1:13416"

# login for the stratum server (if required)
#stratum_server_login = "http://192.168.1.100:13415"

# password for the stratum server (if required)
#stratum_server_password = "x"

#The directory in which mining plugins are installed
#if not specified, grin miner will look in the directory /deps relative
#to the executable

#miner_plugin_dir = "target/debug/plugins"

#############################################
### CUCK(AT)OO MINER PLUGIN CONFIGURATION ###
#############################################

# Multiple plugins can be specified, (e.g. a cpu
# miner and a gpu miner running in parallel)
# Use a single plugin instance per device, as 
# demonstrated below

# Multiple instances of the same plugin can be loaded
# and used with different devices. On CPU plugins
# you'll likely only be using a single instance
# but in CUDA plugins the device number can be set
# corresponding to the device ID. (use nvidia-smi to find this)

### CUCKATOO CPU SOLVERS

### cuckatoo_mean_compat_cpu
# The fastest cpu algorithm, but consumes the most memory

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_compat_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

### cuckatoo_mean_avx2_cpu
# As above, but for processors supporting avx2
# To build and use this plugin, make sure the following build feature
# is enabled in Cargo.toml:
# cuckoo_miner = { path = "./cuckoo-miner", features = ["build-mean-avx2"]}

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_avx2_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

### cuckatoo_lean_cpu
# Low memory requirements, but very slow

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_lean_cpu_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

# CUCKATOO CUDA SOLVERS
#
# These plugins are not built by default. To build:
#1) Ensure the latest cuda toolkit is installed
#   (nvcc should be in your PATH)
#   Wrong gcc? install gcc-5 g++-5; export CC=`which gcc-5`; # then build
#2) Ensure the 'build-cuda-plugin' feature is included in Cargo.toml, e.g:
#   cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins"]}
#
# Parameters can be set individually for each device by using multiple 
# instance of each plugin.  device 0 is used by default
#

### mean cuda miner
# The fastest cuda solver. If you're getting 'out of memory' errors 
# when trying to run this solver, increase the 'expand' parameter
# by 1, and try again. This should work on 6 GB + Cards using
# the expand parameter, 8GB+ withoug

[[mining.miner_plugin_config]]
plugin_name = "cuckaroo_mean_cuda_29"

[mining.miner_plugin_config.parameters]
device = 0
#ntrims = 68
expand = 0
genablocks = 4096
genatpb = 256
genbtpb = 128
trimtpb = 512
tailtpb = 1024
recoverblocks = 1024
recovertpb = 1024

# e.g. To enable multiple devices (copy params from above as needed)

#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_mean_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 1

### lean cuda miner
# much slower cuda solver, but should be usable on low-memory cards
#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_lean_cuda_29"
#device = 0
#blocks = 128
#tpb = 128