Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: bb on July 14, 2011, 01:30:44 AM



Title: [SOLVED]pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code
Post by: bb on July 14, 2011, 01:30:44 AM
Ok, so I am closer to mad than usually. I keep getting the following error:

pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

Now, all of the following work just fine:
  • fglrxinfo
  • aticonfig --listadapters

Also LD_LIBRARY_PATH is set:

$ echo $LD_LIBRARY_PATH
/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64:


And (most importantly) the ICDs are installed:

$ ls /etc/OpenCL/vendors/
atiocl32.icd  atiocl64.icd


What am I missing?  >:(

Thanks,
bb



Title: Re: pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code
Post by: bb on July 14, 2011, 01:58:43 AM
Oh no, I was using SDK 2.4, but the IDCs of SDK 2.1.  ::)


Title: Re: [SOLVED]pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code
Post by: sergio on July 19, 2011, 07:52:32 AM
I have the same problem.
What did you do to fix it?


Title: Re: [SOLVED]pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code
Post by: bb on July 19, 2011, 11:25:44 AM
I have the same problem.
What did you do to fix it?

I deleted the old ICDs from /etc/OpenCL/vendors/ and put the 2.4 ones from AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz there.


Title: Re: [SOLVED]pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code
Post by: djdeniro on March 23, 2018, 09:39:27 AM
same problem with http://vipco.in miner.

Code:
$ sudo ./oclvanitygen -d 2 -P 047a59a820bf2acbf10e30e178c433a7584e####6bf9867a##c3877a1cf78a10####7aac14c583c41078dd5d46a695f57616bf5c10f292c9264f046e6c0679cd9f -Z 3D71E8A1A1038623A2dEF831ABDF39## 1Den
Difficulty: 77178
clGetPlatformIDs(0): Unknown code -1001
clGetPlatformIDs(0): Unknown code -1001
Available OpenCL platforms: