fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

mining with both AMD and Nvidia video card #2502

Closed dkwan8888 closed 4 years ago

dkwan8888 commented 5 years ago

Is there a special way to config to work with both brand of video card?

Many thanks

psychocrypt commented 5 years ago

No there is no special way. Start the miner and both card types should be detected. The miner will create a config for both GPUs.

If somerhing not works please post the output of the miner from the first start where all configs will be created. Also post information about the OS you are using.

CiroTT87 commented 5 years ago

Hi, I also have a similar problem.

My configuration is Win 10 with AMD FX8350 and nvidia gtx560 GPU.

if I try to put in the pollstxt cryptonight_gpu the node does not start, while with cryptonight_r it only goes to CPU.

dkwan8888 commented 5 years ago

Below is the initial config:

This currency is a way for us to implement the ideas that we were unable to in Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.

[2019-08-06 05:32:49] : Mining coin: cryptonight_r [2019-08-06 05:32:50] : Compiling code and initializing GPUs. This will take a while... [2019-08-06 05:32:51] : Device 0 work size 8 / 16. [2019-08-06 05:32:51] : OpenCL device 0 - Load precompiled code from file C:\Users\demo\AppData\Local/.openclcache/a5b863406373d6fa8eca465e860ec2315eb531e7bbf618e2b1e297d07c1c0f53.openclbin [2019-08-06 05:32:51] : OpenCL device 0 - Load precompiled code from file C:\Users\demo\AppData\Local/.openclcache/85aa869f69b470d70ed0b8f0bedefb6c4cc45dccbdb3faa7aff8ad6cf0f95040.openclbin [2019-08-06 05:32:51] : Device 0 work size 8 / 16. [2019-08-06 05:32:51] : OpenCL device 0 - Load precompiled code from file C:\Users\demo\AppData\Local/.openclcache/a5b863406373d6fa8eca465e860ec2315eb531e7bbf618e2b1e297d07c1c0f53.openclbin [2019-08-06 05:32:51] : OpenCL device 0 - Load precompiled code from file C:\Users\demo\AppData\Local/.openclcache/85aa869f69b470d70ed0b8f0bedefb6c4cc45dccbdb3faa7aff8ad6cf0f95040.openclbin [2019-08-06 05:32:51] : Starting AMD GPU (OpenCL) thread 0, no affinity. [2019-08-06 05:32:51] : Starting AMD GPU (OpenCL) thread 1, no affinity. [2019-08-06 05:32:51] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' WARNING: NVIDIA Insufficient driver! WARNING: NVIDIA no device found [2019-08-06 05:32:52] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' WARNING: NVIDIA cannot load backend library: xmrstak_cuda_backend_cuda9_2.dll WARNING: NVIDIA Insufficient driver! WARNING: NVIDIA no device found [2019-08-06 05:32:52] : NVIDIA: try to load library 'xmrstak_cuda_backend' NVIDIA: found 1 potential device's [2019-08-06 05:32:54] : Starting NVIDIA GPU thread 0, no affinity. CUDA [9.1/9.0] GPU#0, device architecture 61: "Quadro P4000"... device init succeeded [2019-08-06 05:32:54] : NVIDIA: use library 'xmrstak_cuda_backend' [2019-08-06 05:32:54] : Starting 1x thread, affinity: 0. [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 2. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 4. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 6. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 8. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 10. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 1. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Starting 1x thread, affinity: 3. [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : hwloc: memory pinned [2019-08-06 05:32:54] : Switch to assembler version for 'intel_avx' cpu's [2019-08-06 05:32:54] : Fast-connecting to pool.supportxmr.com:5555 pool ... [2019-08-06 05:32:55] : Pool pool.supportxmr.com:5555 connected. Logging in... [2019-08-06 05:32:55] : Difficulty changed. Now: 20000. [2019-08-06 05:32:55] : Pool logged in.


Below is the hashrate report HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 28.6 | 28.3 | 28.7 | 1 | 26.1 | 26.4 | 26.4 | | 2 | 50.8 | 50.7 | 51.4 | 3 | 50.4 | 50.6 | 51.6 | | 4 | 51.7 | 52.1 | 53.1 | 5 | 51.3 | 51.4 | 52.2 | | 6 | 30.5 | 30.8 | 31.0 | 7 | 27.7 | 28.1 | 28.2 | Totals (CPU): 317.0 318.5 322.4 H/s

HASHRATE REPORT - AMD | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | (na) | (na) | (na) | 1 | (na) | (na) | (na) | Totals (AMD): 0.0 0.0 0.0 H/s

HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | 537.2 | 537.1 | 536.5 | Totals (NVIDIA): 537.2 537.1 536.5 H/s

Totals (ALL): 854.2 855.5 859.0 H/s Highest: 0.0 H/s

Ryo-RU commented 5 years ago

CiroTT87 dkwan8888 so whats the problem? on first start miner detects all hardware and creates config. No special tweaking is needed.

dkwan8888 commented 5 years ago

The hashrate is always 0

On Wed, Aug 7, 2019 at 8:24 AM Ryo-RU notifications@github.com wrote:

CiroTT87 dkwan8888 so whats the problem? on first start miner detects all hardware and creates config. No special tweaking is needed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/2502?email_source=notifications&email_token=AKQXHYOXGBIQNFBPWGE2UT3QDK5GNA5CNFSM4IJGWZO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3YG24I#issuecomment-519073137, or mute the thread https://github.com/notifications/unsubscribe-auth/AKQXHYPIAAHJRLJNEVE2HSDQDK5GNANCNFSM4IJGWZOQ .

psychocrypt commented 5 years ago

please post the file amd.txt

dkwan8888 commented 5 years ago

"gpu_threads_conf" : [ // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 }, // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 },

],

/*

/*

psychocrypt commented 5 years ago

your amd gpu is very old. you can test different driver but users reported a lot of issues and it is not easy to find a driver which is working. I think amd 14.6 or so was the most used driver.

dkwan8888 notifications@github.com schrieb am Mi., 7. Aug. 2019, 19:59:

"gpu_threads_conf" : [ // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 }, // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 },

],

/*

  • number of rounds per intensity performed to find the best intensity settings
  • WARNING: experimental option
  • 0 = disable auto tuning
  • 10 or higher = recommended value if you don't already know the best intensity */ "auto_tune" : 0,

/*

  • Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel. */ "platform_index" : 1,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/2502?email_source=notifications&email_token=AGFTDNWLOUVG6HNXJFDCY5TQDMERHA5CNFSM4IJGWZO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZHGQY#issuecomment-519205699, or mute the thread https://github.com/notifications/unsubscribe-auth/AGFTDNU22UYNYWPWSLAG3YDQDMERHANCNFSM4IJGWZOQ .

dkwan8888 commented 5 years ago

It is a older card, just given by friend and try to put it to work.

Thanks.

On Wed, Aug 7, 2019 at 2:06 PM psychocrypt notifications@github.com wrote:

your amd gpu is very old. you can test different driver but users reported a lot of issues and it is not easy to find a driver which is working. I think amd 14.6 or so was the most used driver.

dkwan8888 notifications@github.com schrieb am Mi., 7. Aug. 2019, 19:59:

"gpu_threads_conf" : [ // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 }, // gpu: Cedar compute units: 2 // memory:192|192|384 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 88, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 },

],

/*

  • number of rounds per intensity performed to find the best intensity settings
  • WARNING: experimental option
  • 0 = disable auto tuning
  • 10 or higher = recommended value if you don't already know the best intensity */ "auto_tune" : 0,

/*

  • Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel. */ "platform_index" : 1,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/fireice-uk/xmr-stak/issues/2502?email_source=notifications&email_token=AGFTDNWLOUVG6HNXJFDCY5TQDMERHA5CNFSM4IJGWZO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZHGQY#issuecomment-519205699 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AGFTDNU22UYNYWPWSLAG3YDQDMERHANCNFSM4IJGWZOQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/2502?email_source=notifications&email_token=AKQXHYNY7QDFPSICHIWDTY3QDMFJPA5CNFSM4IJGWZO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ZHZ7A#issuecomment-519208188, or mute the thread https://github.com/notifications/unsubscribe-auth/AKQXHYPHVWYWJH4KLMOKGATQDMFJPANCNFSM4IJGWZOQ .

dkwan8888 commented 5 years ago

Its now an ATI FirePro V4900 Driver Date: 2015-11-04 Driver Version: 15.201.1151.1008

Still show hashrate of 0.... please help.

"gpu_threads_conf" : [ // gpu: Turks compute units: 6 // memory:448|512|896 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 216, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 }, // gpu: Turks compute units: 6 // memory:448|512|896 MiB (used per thread|max per alloc|total free) { "index" : 0, "intensity" : 216, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : 2, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true, "interleave" : 40 },

],

/*

/*

------- using

psychocrypt commented 4 years ago

I will close this issue. You must search for a AMD driver which works well with this GPU. It is not very easy to find the right driver :-(