Author

Topic: making my GPU usable for OpenCL (Read 2296 times)

newbie
Activity: 24
Merit: 0
April 28, 2013, 10:03:02 AM
#19
It's a laptop without GPU, so adding one will be ... a bit impossible

Your only option is CPU mining, then, and CPU mining is pointless. You could get up about 30MH/s on a high-end i7, and it will make the temperatures run very hot. Especially on a laptop.
KNK
hero member
Activity: 692
Merit: 502
April 28, 2013, 09:50:41 AM
#18
It's a laptop without GPU, so adding one will be ... a bit impossible
newbie
Activity: 24
Merit: 0
April 28, 2013, 09:38:32 AM
#17
ATI > nVidia

NVidia, apart from their strongest GPUs are totally useless for mining. And even they perform very poorly in comparison to the same-level AMD/ATI cards.
newbie
Activity: 5
Merit: 0
April 28, 2013, 09:28:31 AM
#16
ATI > nVidia
newbie
Activity: 24
Merit: 0
April 28, 2013, 09:16:55 AM
#15
Your GPU is integrated and does not support OpenCL. Get a Radeon card if you want to do mining.
KNK
hero member
Activity: 692
Merit: 502
April 28, 2013, 09:07:08 AM
#14
If you have BFGminer compiled with CPU support you still need to enable it when starting the miner. Also you may simply use a cpuminer (like from the thread about OpenCL)
sr. member
Activity: 507
Merit: 253
April 28, 2013, 01:26:23 AM
#13
"Failed to load OpenCL library" - may that be the problem?

Is it in your default library path or somewhere else? You may need to list that location in ld.so.conf and do ldconfig.

You may also need to recompile the miner with your version of the lib, because currently it looks for a different lib than yours
Strange that running ldd on bfgminer doesn't yield any OpenCL libraries:
Code:
        linux-vdso.so.1 (0x00007fffbb9ff000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fd99b0d3000)
        libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x00007fd99ae79000)
        libjansson.so.4 => /usr/lib64/libjansson.so.4 (0x00007fd99ac6d000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd99aa50000)
        libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007fd99a7f2000)
        libudev.so.0 => /lib64/libudev.so.0 (0x00007fd99a5e5000)
        libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fd99a3d6000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fd99a0d3000)
        libblkmaker_jansson-0.1.so.0 => /lib/libblkmaker_jansson-0.1.so.0 (0x00007fd999ed0000)
        libblkmaker-0.1.so.0 => /lib/libblkmaker-0.1.so.0 (0x00007fd999ccd000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fd999903000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd99b318000)
        libidn.so.11 => /usr/lib64/libidn.so.11 (0x00007fd9996d1000)
        libssl.so.1 => /usr/lib64/libssl.so.1 (0x00007fd999467000)
        libcrypto.so.1 => /usr/lib64/libcrypto.so.1 (0x00007fd99908a000)
        liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007fd998e7c000)
        libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x00007fd998c34000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00007fd998a1e000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fd998816000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fd9985fb000)
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fd9983e1000)
BFGMiner's ./configure did detect OpenCL, however, so I thought I built it correctly…
sr. member
Activity: 507
Merit: 253
April 28, 2013, 01:17:55 AM
#12
Found this thread - https://bitcointalksearch.org/topic/intel-opencl-sdk-25270 so it seems OpenCL from Intel is not for the GPU, but CPU only.
That could be.
KNK
hero member
Activity: 692
Merit: 502
April 27, 2013, 02:04:13 AM
#11
Found this thread - https://bitcointalksearch.org/topic/intel-opencl-sdk-25270 so it seems OpenCL from Intel is not for the GPU, but CPU only.

Use --enable-cpumining to get some hands on mining, but make sure not to ovreheat your laptop
KNK
hero member
Activity: 692
Merit: 502
April 27, 2013, 01:53:03 AM
#10
"Failed to load OpenCL library" - may that be the problem?

Is it in your default library path or somewhere else? You may need to list that location in ld.so.conf and do ldconfig.

You may also need to recompile the miner with your version of the lib, because currently it looks for a different lib than yours
sr. member
Activity: 507
Merit: 253
April 26, 2013, 07:05:47 PM
#9
Yes, I have OpenCL installed and working, but I apparently can't use it with my GPU because it's in use.

This is not a reason not to be able to mine with it and in fact it is the opposite ... as i can see you are on Linux - you need to use it and have X running on it, then you may need to 'export DISPLAY=:0' before you run your miner in order to detect the GPU

With ATI SDK there clinfo tool which should detect the GPU if it has OpenCL support on my machine i have:

$ clinfo | grep GPU
  Device Type:                                   CL_DEVICE_TYPE_GPU
Thanks for the help, but setting DISPLAY didn't help; I still get the "Failed to load OpenCL library, no GPUs usable" error…
KNK
hero member
Activity: 692
Merit: 502
April 26, 2013, 10:53:28 AM
#8
Yes, I have OpenCL installed and working, but I apparently can't use it with my GPU because it's in use.

This is not a reason not to be able to mine with it and in fact it is the opposite ... as i can see you are on Linux - you need to use it and have X running on it, then you may need to 'export DISPLAY=:0' before you run your miner in order to detect the GPU

With ATI SDK there clinfo tool which should detect the GPU if it has OpenCL support on my machine i have:

$ clinfo | grep GPU
  Device Type:                                   CL_DEVICE_TYPE_GPU
sr. member
Activity: 507
Merit: 253
April 26, 2013, 10:45:45 AM
#7
Your GPU does not support OpenCL
How do you know that? Couldn't the output saying it's unusable mean it's just being occupied?
sr. member
Activity: 507
Merit: 253
April 26, 2013, 10:44:11 AM
#6
On your machine you may either mine with your CPU or the to search for 'Intel Open CL' - they have provided some Open CL support recently, but i don't know any details, as i have not tested it yet myself.
Yes, I have OpenCL installed and working, but I apparently can't use it with my GPU because it's in use.
P.S.
In both cases (CPU or Intel GPU mining) you will be at very low hashrate and huge power usage, so it will not be profitable, but still you may test it to get some hands on mining.
Yes, I just want to test things and get used to the software. I don't expect to make anything off it (perhaps a tiny amount with Litecoin, though).
P.P.S.
 If it is a laptop i do not recommend mining at all or you may damage it pretty quickly
Indeed
KNK
hero member
Activity: 692
Merit: 502
April 26, 2013, 10:18:07 AM
#5
On your machine you may either mine with your CPU or the to search for 'Intel Open CL' - they have provided some Open CL support recently, but i don't know any details, as i have not tested it yet myself.

P.S.
In both cases (CPU or Intel GPU mining) you will be at very low hashrate and huge power usage, so it will not be profitable, but still you may test it to get some hands on mining.

P.P.S.
 If it is a laptop i do not recommend mining at all or you may damage it pretty quickly
legendary
Activity: 1148
Merit: 1008
If you want to walk on water, get out of the boat
April 26, 2013, 10:02:57 AM
#4
Your GPU does not support OpenCL

You can't mine

Get a GPU wich support OpenCL (any dedicated one or the one in the recent processors) to mine
sr. member
Activity: 507
Merit: 253
April 26, 2013, 09:56:09 AM
#3
Er... it sounds like you don't have a GPU, just integrated graphics on your CPU.
Which, nevertheless, my computer calls a GPU…
Is that correct, or do you have an actual dedicated GPU and it's not being detected? If so, what card is it?
No, I don't have a graphics card dedicated solely to mining. Is it not possible to run headless on the integrated GPU? thanks
sr. member
Activity: 420
Merit: 250
April 26, 2013, 02:16:59 AM
#2
Er... it sounds like you don't have a GPU, just integrated graphics on your CPU. Is that correct, or do you have an actual dedicated GPU and it's not being detected? If so, what card is it?

sr. member
Activity: 507
Merit: 253
April 26, 2013, 01:21:09 AM
#1
I get this error with BFGMiner:
bfgminer -n
 [2013-04-06 20:11:28] Failed to load OpenCL library, no GPUs usable                   
 [2013-04-06 20:11:28] 0 GPU devices max detected
Here's my "bfgminer -D -d?":
Code:
 [2013-04-25 09:47:31] ft232r_scan: Found 093a:2510 - not a ft232r                    
 [2013-04-25 09:47:31] ft232r_scan: Found 1d6b:0002 - not a ft232r                   
 [2013-04-25 09:47:31] ft232r_scan: Found 1d6b:0002 - not a ft232r                   
 [2013-04-25 09:47:31] ft232r_scan: Found 8087:0020 - not a ft232r                   
 [2013-04-25 09:47:31] ft232r_scan: Found 8087:0020 - not a ft232r                   
 [2013-04-25 09:47:31] Started bfgminer 3.0.1                   
 [2013-04-25 09:47:31] Loaded configuration file /home/geremia/.bfgminer/bfgminer.conf                   
 [2013-04-25 09:47:31] CL Platform 0 vendor: Intel(R) Corporation                   
 [2013-04-25 09:47:31] CL Platform 0 name: Intel(R) OpenCL                   
 [2013-04-25 09:47:31] CL Platform 0 version: OpenCL 1.1 LINUX                   
 [2013-04-25 09:47:31] Error -1: Getting Device IDs (num)                   
**[2013-04-25 09:47:31] clDevicesNum returned error, no GPUs usable**
 [2013-04-25 09:47:31] Not a ZTEX device 093a:2510                   
 [2013-04-25 09:47:31] Not a ZTEX device 1d6b:0002                   
 [2013-04-25 09:47:31] Not a ZTEX device 1d6b:0002                   
 [2013-04-25 09:47:31] Not a ZTEX device 8087:0020                   
 [2013-04-25 09:47:31] Not a ZTEX device 8087:0020                   
 [2013-04-25 09:47:31] Devices detected:                   
 [2013-04-25 09:47:31]   0. CPU 0  (driver: cpu)                   
 [2013-04-25 09:47:31]   1. CPU 1  (driver: cpu)                   
 [2013-04-25 09:47:31]   2. CPU 2  (driver: cpu)                   
 [2013-04-25 09:47:31]   3. CPU 3  (driver: cpu)                   
4 devices listed
And my "lspci -nn | grep VGA":
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 18)
How do I make my GPU usable? Since it's powering my video, would this require going headless? And how would I go headless?

thanks
Jump to: