<p>1) Make sure the Vanitygen you use has <a href="https://github.com/samr7/vanitygen/pull/53/files#diff-65c8bf055bf9255a64e51f08d818a49cR450" rel="nofollow noreferrer">the AMD patch</a> (if you have an AMD GPU, Vanitygen Plus has it)</p>

<p>2) Update your GPU drivers (can't be done on Mac)</p>

<p>3) Play with each of these constants. Their effect is different among the GPUs and drivers, and you may never know if they can have a (relatively) significant positive effect performance.</p>

<pre><code>-w &lt;worksize&gt; Set work items per thread in a work unit
-t &lt;threads&gt;  Set target thread count per multiprocessor
-g &lt;x&gt;x&lt;y&gt;    Set grid size
-b &lt;invsize&gt;  Set modular inverse ops per thread
</code></pre>

CC BY-SA 4.0
2018-05-03T14:51:10.230Z
2018-05-03T14:51:10.230Z
MCCCS
<p>I'd like to extract the most performance possible from oclvanitygen.  Can anyone tell me what the best practices are with this tool?</p>

<p>Examples may include:</p>

<ul>
<li>Use operating system X, or video card Y</li>
<li>Ensure that the file specified with the -F option has more than 7 characters per row</li>
<li>Ensure that there are no more than Z quantity of lines in the file</li>
<li>Set a custom grid size with the <code>-g</code> option (what is this?)</li>
<li>How many work items per thread ( <code>-w</code> option)</li>
<li>What custom options should I use (<code>-d</code> option)</li>
</ul>

CC BY-SA 3.0
2013-01-10T15:12:31.203Z
The -d option selects which device to use. 0 is normally CPU and 1 is normally GPU.
lurf jurv
<vanity-address><performance><open-source><vanitygen>
How do I optimize my usage of oclvanitygen?
makerofthings7
# How do I optimize my usage of oclvanitygen?

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

I'd like to extract the most performance possible from oclvanitygen. Can anyone tell me what the best practices are with this tool?

Examples may include:

* Use operating system X, or video card Y
* Ensure that the file specified with the -F option has more than 7 characters per row
* Ensure that there are no more than Z quantity of lines in the file
* Set a custom grid size with the `-g` option (what is this?)
* How many work items per thread ( `-w` option)
* What custom options should I use (`-d` option)

**Tags:** vanity-address, performance, open-source, vanitygen

> **Comments:**
> **username_1**: The -d option selects which device to use. 0 is normally CPU and 1 is normally GPU.  

---

## 1 answers

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

1) Make sure the Vanitygen you use has the AMD patch (if you have an AMD GPU, Vanitygen Plus has it)
2) Update your GPU drivers (can't be done on Mac)
3) Play with each of these constants. Their effect is different among the GPUs and drivers, and you may never know if they can have a (relatively) significant positive effect performance.
-w  Set work items per thread in a work unit
-t   Set target thread count per multiprocessor
-g x    Set grid size
-b   Set modular inverse ops per thread


---

