todxx / teamredminer

AMD GPU Optimized Cryptocurrency Miner
958 stars 204 forks source link

Failed to initialize device idx 0 (-17) with opencl-amd 20.50.1234664 #267

Open trougnouf opened 3 years ago

trougnouf commented 3 years ago

Trying to mine ethash with the latest opencl-amd 20.50.1234664, I get

          Team Red Miner version 0.8.1.1
[2021-03-29 11:55:34] Auto-detected AMD OpenCL platform 2
[2021-03-29 11:55:34] Failed to initialize device idx 0 (-17)
[2021-03-29 11:55:34] Successful clean shutdown.

Note that ethminer and nsfminer don't work either, throwing CL_OUT_OF_HOST_MEMORY errors. OpenCL works with other applications s.a. darktable.

nanom1t commented 3 years ago

CL_OUT_OF_HOST_MEMORY - looks like you need to have more RAM on your PC.

trougnouf commented 3 years ago

That seems unlikely as I have 48 GB of RAM and the GPU (Radeon Vega 56) has 8 GB. It works with the rocm-opencl-runtime 4.1 opencl driver and previous versions of opencl-amd, but my system is unstable with that driver.

WatermelonRei commented 3 years ago

I experience the same issue. I use 5700XT on Arch Linux with opencl-amd >=20.45 and the miner can not finish initializing. Temporary workaround I used now is to downgrade opencl-amd version to 20.40, the download link is here: https://aur.archlinux.org/cgit/aur.git/snapshot/aur-88cc39d2619dddf7c62fc4e4eb3726ab04cb8f92.tar.gz

trougnouf commented 3 years ago

I am able to use nsfminer with rocm-opencl-runtime 4.1.0 and the latest kernel (not stable with lts). I haven't tested teamredminer again since.

WatermelonRei commented 3 years ago

The new amdgpu-pro driver has released, you can install the new opencl-amd 21.10 package and test TRM again. My 5700XT is still not functional with it as before, get the same output "Failed to initialize device idx 0 (-17)"

NeNpO commented 3 years ago

I get the following error: Failed to initialize device idx 0 (-13)

OS: Manjaro with LTS kernel opencl-amd 21.10.1247438-1 Team Red Miner version 0.8.1 And Team Red Miner version 0.8.2.1 GPU: Vega 64 If you need any help with the testing, let me know.