GPU mining with Intel HD Graphics 4000

2

1

I am running Mac OS X 10.7 on a MBP and OS X 10.8 on a Mac Mini. The Mini has a Intel HD Graphics 4000 GPU and the MBP has a 3000.

I know that I cannot mine with the MBP as the GPU does not support OpenCL. The Mac Mini should be able to as the Intel HD 4000 supports OpenCL 1.2.

However when I run:

bfgminer -n
 [2013-12-04 15:35:22] 0 GPU devices max detected

My GPU is not detected. I have the latest XCode installed as the well as command line tools and compiled bfgminer with the latest install of brew.

I just want to play around with mining and am not interested in buying an ASIC set up.

How can I get my GPU to be detected by bfgminer or cgminer?


Update:

When I run 'bfgminer --verbose' I get the following error:

[2013-12-04 17:30:57] JSON-RPC call failed: { "code": -1,
"message": "Unsupported method 'getblocktemplate'" }

Deesbek

Posted 2013-12-04T22:49:54.907

Reputation: 123

What is the processor you are using on the Mac Mini ?Meterbuchus 2013-12-04T23:39:29.410

@Meterbuchus The GPU or the CPU? As I stated in the question on the Mini it is an Intel HD Graphics 4000 GPU. CPU is: 2.3 GHz Intel core i7Deesbek 2013-12-04T23:41:52.210

Do you know which generation of an i7 it is ? A specific model number would be helpful.Meterbuchus 2013-12-04T23:44:56.493

sysctl -n machdep.cpu.brand_string yields: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHzDeesbek 2013-12-04T23:53:05.127

Your error indicates you have pointed your mining program at an unsuitable source of work.David Schwartz 2013-12-05T01:23:29.327

Answers

3

The following program will show you the OpenCL-capable devices on a given Macintosh:

// clang -framework OpenCL dumpcl.c -o dumpcl && ./dumpcl

# include <stdio.h>
# include <stdlib.h>
# include <OpenCL/opencl.h>


int main(int argc, char* const argv[]) {
    cl_uint num_devices, i;
    clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &num_devices);

    cl_device_id* devices = calloc(sizeof(cl_device_id), num_devices);
    clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, num_devices, devices, NULL);

    char buf[128];
    for (i = 0; i < num_devices; i++) {
        clGetDeviceInfo(devices[i], CL_DEVICE_NAME, 128, buf, NULL);
        fprintf(stdout, "Device %s supports ", buf);

        clGetDeviceInfo(devices[i], CL_DEVICE_VERSION, 128, buf, NULL);
        fprintf(stdout, "%s\n", buf);
    }

    free(devices);
}

If it fails to show you your GPU then its a driver issue.If it succeeds then its some kind of a configuration error.

Meterbuchus

Posted 2013-12-04T22:49:54.907

Reputation: 479

1

In order to compile the above the following has to be done cc dumpcl.c -o dumpcl -framework OpenCL.

Deesbek 2013-12-05T01:16:00.470

Ok, it runs, so it is an configuration error.Deesbek 2013-12-05T01:16:45.647

1

Upgrade to OS X Mavericks and it should work. It's a driver issue.

At least on my Macbook, after I upgraded to Mavericks I can mine on both the GeForce and the Intel HD 4000. Not that it makes sense to do so. ASICs have taken over, and even before that AMD was the GPU for mining.

Dr.Haribo

Posted 2013-12-04T22:49:54.907

Reputation: 7 823

I have upgraded to OS X Maverics and it has made no difference.Deesbek 2013-12-18T16:01:32.953

1Mine litecoins with GPU. @DeesbekProf. Falken supports Monica 2014-01-07T02:09:14.293

@Prof.Falken thanks for the tip, I have friends who do that and Dogiecoin as well but I specifically needed to compare performance changes over time with GPU.Deesbek 2014-01-08T13:48:56.203