Bitcoin Forum
June 16, 2024, 10:47:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: making my GPU usable for OpenCL  (Read 2277 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 26, 2013, 06: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

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Bonam
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


View Profile
April 26, 2013, 07: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?

Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 26, 2013, 02:56:09 PM
 #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

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
April 26, 2013, 03:02:57 PM
 #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

KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 26, 2013, 03:18:07 PM
 #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

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 26, 2013, 03:44:11 PM
 #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

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 26, 2013, 03:45:45 PM
 #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?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 26, 2013, 03:53:28 PM
 #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

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 27, 2013, 12:05:47 AM
 #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…

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 27, 2013, 06: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

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 27, 2013, 07:04:13 AM
 #11

Found this thread - https://bitcointalk.org/index.php?topic=25270.0 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

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 28, 2013, 06:17:55 AM
 #12

Found this thread - https://bitcointalk.org/index.php?topic=25270.0 so it seems OpenCL from Intel is not for the GPU, but CPU only.
That could be.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 28, 2013, 06: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…

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 28, 2013, 02:07:08 PM
 #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)

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
drgonzo
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 28, 2013, 02:16:55 PM
 #15

Your GPU is integrated and does not support OpenCL. Get a Radeon card if you want to do mining.
eightythree
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 28, 2013, 02:28:31 PM
 #16

ATI > nVidia
drgonzo
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 28, 2013, 02:38:32 PM
 #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.
KNK
Hero Member
*****
Offline Offline

Activity: 692
Merit: 502


View Profile
April 28, 2013, 02:50:41 PM
 #18

It's a laptop without GPU, so adding one will be ... a bit impossible

Mega Crypto Polis - www.MegaCryptoPolis.com
BTC tips: 1KNK1akhpethhtcyhKTF2d3PWTQDUWUzHE
drgonzo
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 28, 2013, 03:03:02 PM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!