# Grin-miner 0.5.2 detects only 1 GPU

**URL:** <https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148>\
**Category:** Uncategorized\
**Created:** [January 14, 2019, 6:15pm UTC](https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148 "2019-01-14T18:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AskSatoshi](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/asksatoshi/32/837_2.png) [@AskSatoshi](https://forum.grin.mw/u/AskSatoshi)\
**Post date:** [January 14, 2019, 6:15pm UTC](https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148/1 "2019-01-14T18:15:45Z")

</div>

Hey guys. I’ve upgraded to 0.5.2 and installed 2 new 2080 Tis. I was running 1070 successfully with 0.5.1, but now I get error during compilation and miner detects just 1 card. Any suggestions what could went wrong?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/edebf0765025799ad71fbdc3a30f80183e9e24b8.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/61babc52c4d20a468d45c8490d53b95c281a602e.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/df1071b025d53022ff9af30f9f72493f8294db10.png)

---

<div class="post-metadata">

**Author:** ![fatchance](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/fatchance/32/953_2.png) [@fatchance](https://forum.grin.mw/u/fatchance)\
**Post date:** [January 14, 2019, 6:20pm UTC](https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148/2 "2019-01-14T18:20:03Z")

</div>

> [@AskSatoshi](#):
>
> but now I get error during compilation and miner detects just 1 card.

Assuming you followed the [grin-miner instructions](https://github.com/mimblewimble/grin-miner):

1. From your screenshot, it looks like those are only compilation warnings, not errors.
2. Did you follow the instructions in [@Yeastplume’s post](https://forum.grin.mw/t/how-to-mine-cuckoo-30-in-grin-help-us-test-and-collect-stats/152) about multiple GPUs? Specifically, in your grin-miner.toml file:

> [@How to Mine Cuckoo 30 in Grin: Help us test and collect stats!](https://forum.grin.mw/t/how-to-mine-cuckoo-30-in-grin-help-us-test-and-collect-stats/152/1):
>
> ### Running Multiple GPUs
> 
> You may have multiple GPUs in your machine (like in a dedicated mining rig, for instance). In this case, you can configure the cuda plugin to run as many on them at a time as you desire.
> 
> To do this, modify the cuda plugin configuration section of grin.toml to look roughly similar to the following, (depending on how many devices you want to use):
> 
> ```auto
> #Parameters can be set per device, as below. In sync mode
> #device 0 is currently the only device used. In async mode
> #device 0 is used by default, and all other devices are
> #disabled unless explicitly enabled by setting the 'USE_DEVICE'
> #param to 1 on each device, as demonstrated below.
> 
> [[mining.miner_plugin_config]]
> type_filter = "cuda"
> [mining.miner_plugin_config.device_parameters.0]
> USE_DEVICE = 1
> 
> # Below are advanced optional per-device tweakable params
> 
> #GENU_BLOCKS = 256
> #GENU_TPB = 8
> #GENV_STAGE1_TPB = 32
> #GENV_STAGE2_TPB = 128
> #TRIM_STAGE1_TPB = 32
> #TRIM_STAGE2_TPB = 96
> #RENAME_0_STAGE1_TPB = 32
> #RENAME_0_STAGE2_TPB = 64
> #RENAME_1_STAGE1_TPB = 32
> #RENAME_1_STAGE2_TPB = 128
> #TRIM_3_TPB = 64
> #RENAME_3_TPB = 2
> 
> [mining.miner_plugin_config.device_parameters.1]
> USE_DEVICE = 1
> 
> #[mining.miner_plugin_config.device_parameters.2]
> #USE_DEVICE = 1
> 
> ```
> 
> Note we’re leaving the advanced tweakable parameters commented out for now, and will just use the defaults. In my case, I’ve switched to another machine with 2 GPUs installed, and I’ve enabled another section to include the second device. If I had a third installed, I’d add another sections such as  
> `[mining.cuckoo_miner_plugin_config.device_parameters.3]` and configure parameters for it as desired.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![AskSatoshi](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/asksatoshi/32/837_2.png) [@AskSatoshi](https://forum.grin.mw/u/AskSatoshi)\
**Post date:** [January 14, 2019, 6:41pm UTC](https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148/3 "2019-01-14T18:41:20Z")

</div>

Great. It works! Is cuckaroo\_cuda\_29 the best minining algo for both cards?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/1X/2b6452838b3a7bd36826889141beea8bd2b9b3e7.png)

---

<div class="post-metadata">

**Author:** ![fatchance](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/fatchance/32/953_2.png) [@fatchance](https://forum.grin.mw/u/fatchance)\
**Post date:** [January 14, 2019, 7:13pm UTC](https://forum.grin.mw/t/grin-miner-0-5-2-detects-only-1-gpu/2148/4 "2019-01-14T19:13:01Z")

</div>

> [@AskSatoshi](#):
>
> Is cuckaroo\_cuda\_29 the best minining algo for both cards?

Use this tool that @hendi kindly created to find out which cyclehash algo you should use for your different cards: [grin-pool.org](https://www.grin-pool.org/what-to-mine/)
