<p>Hmm, I was interested after your previous question, and tried to install it myself. Unfortunately I keep getting the </p>

<pre><code>  vanitygen: pattern.c:164: vg_exec_context_init: Assertion `vxcp-&gt;vxc_key' failed.
</code></pre>

<p>error, and I have no sudo-rights to fix it right now. </p>

<p>However, to fix your problem, it runs on CPU, not GPU. And it already uses all  CPU's, according to the README. If you have a quad-core CPU there will be 4 workers who have ~100% CPU each. If you want to limit the amount of CPU's used, use the <code>-t &lt;threads&gt;</code>-option.</p>

CC BY-SA 3.0
2014-06-30T14:33:27.667Z
Hey sorry, I meant OCLvanitygen.
rahulgarg12342
CC BY-SA 3.0
2014-06-30T14:50:35.043Z
Oh crap. I didn't knew that also existed
Mathias711
CC BY-SA 3.0
2014-06-30T14:17:40.020Z
2014-06-30T14:17:40.020Z
Mathias711
<p>on Windows for example:</p>

<pre><code>oclvanitygen.exe -D 1:0 1YourName
</code></pre>

CC BY-SA 3.0
2015-02-02T22:58:41.423Z
2015-02-02T22:58:41.423Z
greg121
<pre><code> -D 0:0 -D 0:1 -D 0:2  (etc for as many GPUs as you have)
</code></pre>

<p>Edit:  Sorry I'll clarify for future users..</p>

<pre><code> ./oclvanitygen -i 1address 
</code></pre>

<p>gets me..</p>

<pre><code> Available OpenCL platforms:
 0: [Advanced Micro Devices, Inc.] AMD Accelerated Parallel Processing
 0: [Advanced Micro Devices, Inc.] Tahiti
 1: [Advanced Micro Devices, Inc.] Tahiti
 2: [AuthenticAMD] AMD FX(tm)-4130 Quad-Core Processor 
</code></pre>

<p>So if I want to use the 2x GPU but not the CPU then I'll run..</p>

<pre><code> ./oclvanitygen -i 1address -D 0:0 -D 0:1
</code></pre>

<p>or if I want to only use the CPU then I'll do..</p>

<pre><code> ./oclvanitygen -i 1address -D 0:2
</code></pre>

<p>(yes you can use multiple processes so I could mine one address with one GPU and another with the other GPU)</p>

CC BY-SA 3.0
2014-07-01T00:43:21.490Z
2014-07-01T15:04:47.623Z
2014-07-01T15:04:47.623Z
George
<p>Does anyone know how to use multiple GPU's with <code>oclvanitygen</code>? I have these two:</p>

<pre><code>Available OpenCL platforms:
0: [Intel(R) Corporation] Intel(R) OpenCL
  0: [Intel(R) Corporation]       Intel(R)
  1: [Intel(R) Corporation] Intel(R) HD Gra
1: [NVIDIA Corporation] NVIDIA CUDA
  0: [NVIDIA Corporation] GeForce GT 630M
</code></pre>

<p>What would be the command for using both of them if I want an address that starts with <code>1MYbtc</code>?</p>

<vanitygen>
Use multiple GPU's with oclvanitygen
rahulgarg12342
# Use multiple GPU's with oclvanitygen

(Asked by: username_0 on 2014-06-30)

Does anyone know how to use multiple GPU's with `oclvanitygen`? I have these two:

```
Available OpenCL platforms:
0: [Intel(R) Corporation] Intel(R) OpenCL
  0: [Intel(R) Corporation]       Intel(R)
  1: [Intel(R) Corporation] Intel(R) HD Gra
1: [NVIDIA Corporation] NVIDIA CUDA
  0: [NVIDIA Corporation] GeForce GT 630M

```

What would be the command for using both of them if I want an address that starts with `1MYbtc`?

**Tags:** vanitygen


---

## 3 answers

### Answer by username_3 on 2014-07-01. Score: 7 | Accepted answer

```
 -D 0:0 -D 0:1 -D 0:2  (etc for as many GPUs as you have)

```

Edit: Sorry I'll clarify for future users..

```
 ./oclvanitygen -i 1address 

```

gets me..

```
 Available OpenCL platforms:
 0: [Advanced Micro Devices, Inc.] AMD Accelerated Parallel Processing
 0: [Advanced Micro Devices, Inc.] Tahiti
 1: [Advanced Micro Devices, Inc.] Tahiti
 2: [AuthenticAMD] AMD FX(tm)-4130 Quad-Core Processor 

```

So if I want to use the 2x GPU but not the CPU then I'll run..

```
 ./oclvanitygen -i 1address -D 0:0 -D 0:1

```

or if I want to only use the CPU then I'll do..

```
 ./oclvanitygen -i 1address -D 0:2

```

(yes you can use multiple processes so I could mine one address with one GPU and another with the other GPU)


---

### Answer by username_1 on 2014-06-30. Score: 0

Hmm, I was interested after your previous question, and tried to install it myself. Unfortunately I keep getting the

```
  vanitygen: pattern.c:164: vg_exec_context_init: Assertion `vxcp->vxc_key' failed.

```

error, and I have no sudo-rights to fix it right now.

However, to fix your problem, it runs on CPU, not GPU. And it already uses all CPU's, according to the README. If you have a quad-core CPU there will be 4 workers who have ~100% CPU each. If you want to limit the amount of CPU's used, use the `-t <threads>`-option.

> **Comments:**
> **username_0**: Hey sorry, I meant OCLvanitygen.  
> **username_1**: Oh crap. I didn't knew that also existed  

---

### Answer by username_2 on 2015-02-02. Score: 0

on Windows for example:

```
oclvanitygen.exe -D 1:0 1YourName

```


---

