<p>All you need to do is to add two lines to <code>oclengine.c</code>:</p>

<pre><code>vg_ocl_device_getstr(vocp-&gt;voc_ocldid,
                           CL_DEVICE_NAME);
                           CL_DEVICE_NAME);
+           if (!strcmp(dvn, "Tahiti") || !strcmp(dvn, "Barts") || !strcmp(dvn, "Pitcairn"))
+               quirks &amp;= ~VG_OCL_AMD_BFI_INT;
            if (!strcmp(dvn, "ATI RV710")) {
            if (!strcmp(dvn, "ATI RV710")) {
                quirks &amp;= ~VG_OCL_OPTIMIZATIONS;
                quirks &amp;= ~VG_OCL_OPTIMIZATIONS;
                quirks |= VG_OCL_NO_BINARIES;
                quirks |= VG_OCL_NO_BINARIES;
</code></pre>

<p>Add the lines starting with <code>+</code>, but don't copy the plus sign.</p>

<p>This code adds optimizations for AMD HD 68XX, 69XX, 7XXX</p>

<p>Thanks to Kevin Pan for <a href="https://github.com/samr7/vanitygen/pull/53" rel="nofollow noreferrer">his patch</a>!</p>

CC BY-SA 4.0
2018-05-03T14:56:00.653Z
2018-08-07T14:26:22.817Z
2018-08-07T14:26:22.817Z
MCCCS
<p>Well after getting a new graphics card (7770) I can mine bitcoins at around 120 - 180 Mhash/s Depending if I run it at full power or not.</p>

<p>Now I thought I would try and mine myself an address using it but the miner just seems to not work.</p>

<p>Using Vanitygen (Linked below) oclvanitygen I set it off mining with reports of it mining at around 4MKeys/s but nothing was showing up after 5 mins worth of time(I tried a simple prefix of 1r).</p>

<p>I then tried using just vanitygen64 and in seconds it found an address.</p>

<p>Does anyone know why?</p>

<p><a href="https://bitcointalk.org/index.php?topic=25804.0" rel="nofollow">https://bitcointalk.org/index.php?topic=25804.0</a></p>

CC BY-SA 3.0
2012-12-31T23:04:00.903Z
Is it possible to get / post debug logs?  Perhaps OpenCL isn't installed /working correctly with your card.
makerofthings7
CC BY-SA 3.0
2013-01-01T11:12:14.823Z
The application starts and runs fine but then produces no keys, it don't error out at all.
Running it in safe mode generates the key but is lots slower.

http://pastebin.com/tYPnpJnn Is output with the -v flag
Ryan Walmsley
<vanity-address><vanitygen>
Vanity Mining Error?
Ryan Walmsley
# Vanity Mining Error?

(Asked by: username_0 on 2012-12-31)

Well after getting a new graphics card (7770) I can mine bitcoins at around 120 - 180 Mhash/s Depending if I run it at full power or not.

Now I thought I would try and mine myself an address using it but the miner just seems to not work.

Using Vanitygen (Linked below) oclvanitygen I set it off mining with reports of it mining at around 4MKeys/s but nothing was showing up after 5 mins worth of time(I tried a simple prefix of 1r).

I then tried using just vanitygen64 and in seconds it found an address.

Does anyone know why?

<https://bitcointalk.org/index.php?topic=25804.0>

**Tags:** vanity-address, vanitygen

> **Comments:**
> **username_1**: Is it possible to get / post debug logs?  Perhaps OpenCL isn't installed /working correctly with your card.  
> **username_0**: The application starts and runs fine but then produces no keys, it don't error out at all. Running it in safe mode generates the key but is lots slower.  http://pastebin.com/tYPnpJnn Is output with the -v flag  

---

## 1 answers

### Answer by username_2 on 2018-05-03. Score: 1

All you need to do is to add two lines to oclengine.c:
vg_ocl_device_getstr(vocp->voc_ocldid,
                           CL_DEVICE_NAME);
                           CL_DEVICE_NAME);
+           if (!strcmp(dvn, "Tahiti") || !strcmp(dvn, "Barts") || !strcmp(dvn, "Pitcairn"))
+               quirks &= ~VG_OCL_AMD_BFI_INT;
            if (!strcmp(dvn, "ATI RV710")) {
            if (!strcmp(dvn, "ATI RV710")) {
                quirks &= ~VG_OCL_OPTIMIZATIONS;
                quirks &= ~VG_OCL_OPTIMIZATIONS;
                quirks |= VG_OCL_NO_BINARIES;
                quirks |= VG_OCL_NO_BINARIES;

Add the lines starting with +, but don't copy the plus sign.
This code adds optimizations for AMD HD 68XX, 69XX, 7XXX
Thanks to Kevin Pan for his patch!


---

