fireice-uk / xmr-stak

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

cl_invalid_kernel_args clenqueuendrangekernel #2233

Closed Murtpoiss closed 5 years ago

Murtpoiss commented 5 years ago

I get loads on these after the program starts running ... Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0 I'm using crypto drivers from AMD + driver patcher for modded bios Everything with the program itself is default ...

Basic information

Compile issues

Issue with the execution

Just downloaded the ZIP

AMD OpenCl issue

Stability issue

Do i have to install something else on my machine because it's a clean install of win10 ? I can run the xmrig-amd-2.10.0 with no errors at all ... but wanted something newer ...

Murtpoiss commented 5 years ago

[2019-02-12 02:56:04] : Cryptonight hash self-test NOT defined for POW cryptonight_v8_half [2019-02-12 02:56:04] : Cryptonight hash self-test NOT defined for POW cryptonight_v8_half

xmr-stak 2.8.2 36f2e5cc0

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on NVIDIA mining code by KlausT and psychocrypt. Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%


You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

Upcoming xmr-stak-gui is sponsored by:

__ ____

| __ \ / \

#| |/ / | / \/

|| #| /| | | | / \ | | | | | || '|| '|/ | ' \ / __|| | | |

| |\ | || || () || _/| || || | | | | /| | | || ( | || |

_| _|_, | _/ __/ __,||| || _||| || _| __, |

/ | / |
              |___/   https://ryo-currency.com                       |___/

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-02-12 02:56:04] : Mining coin: cryptonight_v8_half [2019-02-12 02:56:04] : Compiling code and initializing GPUs. This will take a while... [2019-02-12 02:56:04] : Device 0 work size 8 / 32. [2019-02-12 02:56:04] : WARNING AMD: gpu 0 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:04] : OpenCL device 0 - Precompiled code C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin not found. Compiling ... [2019-02-12 02:56:13] : OpenCL device 0 - Precompiled code stored in file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:13] : OpenCL device 0 - Precompiled code C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin not found. Compiling ... [2019-02-12 02:56:22] : OpenCL device 0 - Precompiled code stored in file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:22] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:22] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:22] : Device 0 work size 8 / 32. [2019-02-12 02:56:22] : WARNING AMD: gpu 0 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:23] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:23] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 0 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:23] : Device 1 work size 8 / 32. [2019-02-12 02:56:23] : WARNING AMD: gpu 1 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:23] : Device 1 work size 8 / 32. [2019-02-12 02:56:23] : WARNING AMD: gpu 1 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:23] : OpenCL device 1 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:24] : Device 2 work size 8 / 32. [2019-02-12 02:56:24] : WARNING AMD: gpu 2 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:24] : Device 2 work size 8 / 32. [2019-02-12 02:56:24] : WARNING AMD: gpu 2 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:24] : OpenCL device 2 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:24] : Device 3 work size 8 / 32. [2019-02-12 02:56:24] : WARNING AMD: gpu 3 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:25] : Device 3 work size 8 / 32. [2019-02-12 02:56:25] : WARNING AMD: gpu 3 intensity is not a multiple of 'worksize', auto reduce intensity to 496 [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/9e704bfecc8e6f49a2be6370bd86eeee5fbf4649892b87dca2d8c7816a1228f4.openclbin [2019-02-12 02:56:25] : OpenCL device 3 - Load precompiled code from file C:\Users\Kaevur\AppData\Local/.openclcache/33aa4b2fcb5e000157b6aa2b56b3edb72e47d393baeb19aad6dc76ef288f30a5.openclbin [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 0, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 1, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 2, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 3, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 4, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 5, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 6, no affinity. [2019-02-12 02:56:25] : Starting AMD GPU (OpenCL) thread 7, no affinity. [2019-02-12 02:56:25] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' [2019-02-12 02:56:25] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' [2019-02-12 02:56:25] : NVIDIA: try to load library 'xmrstak_cuda_backend' [2019-02-12 02:56:25] : WARNING: backend NVIDIA disabled. [2019-02-12 02:56:25] : WARNING: backend CPU disabled. [2019-02-12 02:56:25] : Fast-connecting to masari.miner.rocks:5005 pool ... [2019-02-12 02:56:25] : Pool masari.miner.rocks:5005 connected. Logging in... [2019-02-12 02:56:25] : Difficulty changed. Now: 60000. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Pool logged in. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0.

Spudz76 commented 5 years ago

2230 was supposed to fix this, which blockchain driver version exactly?

Murtpoiss commented 5 years ago

Win10-64Bit-Crimson-ReLive-Beta-Blockchain-Workloads-Aug23 Should i get something else ?

Spudz76 commented 5 years ago

I don't know, but it would be one of @psychocrypt first questions for you

psychocrypt commented 5 years ago

Please post your amd.txt Please also try to set your intensity to a multipe of the worksize. It could be that there is an issue with the auto correction.

psychocrypt commented 5 years ago

could you please try also an other pool. if i remember correct e.g the masari testnet pool send ill formated jobs to the miner which created similar issues.

Murtpoiss commented 5 years ago

amd.txt Can you recommend a pool that works ? all the pools that i use in that older program give all the same error row and nothing else ...

psychocrypt commented 5 years ago

are you sure you send the right file because the config not fit with the output of the second post.

Murtpoiss commented 5 years ago

Only thing i have tried and changed so far is the intensity ... tried all different sorts ... everything else is the same as in the run i pasted the output above ...

psychocrypt commented 5 years ago

could you pease try another pool. I will try to reproduce the issue today.

Murtpoiss commented 5 years ago

masari.hashvault.pro / cryptoknight.cc / masari.miner.rocks these all give the same errors to me ...

Some more rows i see look something like this ... [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : OpenCL 2|1: auto-tune validate intensity 296|288 [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : OpenCL Interleave 1|0: 12/34.90 ms - 40.0 [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-12 02:56:26] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0.

BKdilse commented 5 years ago

Hey, I'm using 2.8.2, and it's working fine for all my pools (including Stellite), but Masari is throwing Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0.

I'm using Drvier v18.5.1.

EDIT: Pool is msr.pool.gntl.co.uk:7777

@psychocrypt

jagerman commented 5 years ago

I'm also getting this same error in Linux using both amdgpu-pro 17.50 and rocm 2.0 when trying to mine on a Masari pool.

This doesn't appear to have anything to do with cryptonight_v8_half, though: I get the same huge number of Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. errors when I attempt to start mining on a Masari pool with any algorithm (I tried cryptonight_v8, cryptonight_v7, cryptonight_heavy).

jagerman commented 5 years ago

There is some discussion of why Masari is broken here: xmrig/xmrig#913

psychocrypt commented 5 years ago

I will have a look into it in the next days.

xmronadaily commented 5 years ago

@psychocrypt I too am having the same issue:

"[2019-02-14 01:34:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-14 01:34:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-14 01:34:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-14 01:34:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0. [2019-02-14 01:34:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0.

Just getting an endless spam of that when I try Masari or any cn-half algo.

The rig is running Win 10 64, Drivers 17.9.3 GPUs: 4x 7850, 1x R9 270

Haven't tested it on a Vega rig, but I suspect it would be the same.

cl4r0s commented 5 years ago

Same issue on my Mac OS 10.13.6 Version: xmr-stak/2.8.3/e785ca1/master/mac/amd-cpu/20

[2019-02-18 23:57:36] : Error CL_INVALID_KERNEL_ARGS when calling clEnqueueNDRangeKernel for kernel 0.

Error both on MSR and XMR, It may be due to xmrstak/backend/amd/amd_gpu/gpu.cpp:1358

psychocrypt commented 5 years ago

which currency do you selected

BKdilse commented 5 years ago

Not sure who you are asking, but I'm using currency: masari.

BKdilse commented 5 years ago

Can confirm it's working for CPU, but not AMD GPUs.

psychocrypt commented 5 years ago

fixed with #2296

Murtpoiss commented 5 years ago

When or how can i download the fixed version ?

psychocrypt commented 5 years ago

BK do you tried my fix direct? because currently the fix is not merged to the dev branch. which gpu do you used?

Murtpoiss commented 5 years ago

8GB 480s MSI and Gigabyte

BKdilse commented 5 years ago

@psychocrypt I haven't tried, but I'll do so as soon as I get a chance, I'm working away at the moment. I'll update this thread with my results.

BKdilse commented 5 years ago

Can confirm 2.10.1 has fixed Masari.