user10116: 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'" }


user141: 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.

user7519: 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.

10116: <p>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.</p>

<p>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.</p>

<p>However when I run:</p>

<pre><code>bfgminer -n
 [2013-12-04 15:35:22] 0 GPU devices max detected
</code></pre>

<p>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.</p>

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

<p><strong>How can I get my GPU to be detected by bfgminer or cgminer?</strong></p>

<hr>

<h1>Update:</h1>

<p>When I run 'bfgminer --verbose' I get the following error:</p>

<blockquote>
  <p>[2013-12-04 17:30:57] JSON-RPC call failed: {    "code": -1,<br>
  "message": "Unsupported method 'getblocktemplate'" }</p>
</blockquote>
 141: <p>Upgrade to OS X Mavericks and it should work. It's a driver issue.</p>

<p>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.</p>
 7519: <p>The following program will show you the OpenCL-capable devices on a given Macintosh:</p>

<pre><code>// clang -framework OpenCL dumpcl.c -o dumpcl &amp;&amp; ./dumpcl

# include &lt;stdio.h&gt;
# include &lt;stdlib.h&gt;
# include &lt;OpenCL/opencl.h&gt;


int main(int argc, char* const argv[]) {
    cl_uint num_devices, i;
    clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &amp;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 &lt; 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);
}
</code></pre>

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