> For the complete documentation index, see [llms.txt](https://apool.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apool.gitbook.io/help/qubic-pool-tutorial/qubic-windows-mining-tutorial.md).

# Qubic Windows Mining Tutorial

**1.  Acquire sub-account**

In order to earn qus, one must mine to a sub-account. Head over to [https://www.apool.io ](https://www.apool.io/)to finish email registration.&#x20;

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FBnj74si96n6ye7oaR6KH%2F%E5%9B%BE%E7%89%871.png?alt=media&amp;token=5490f99a-ff5b-42b4-a9a4-8aebf35963bf" alt=""><figcaption></figcaption></figure>

Apool will allocate a sub-account automatically under your name.  Check out your sub-account name in 'My miners' page.

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2F6wlzyyOLADp1FfwOFP5n%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20240410112842.png?alt=media&amp;token=fac31930-c33c-4923-8d66-10bda5e427e6" alt=""><figcaption></figcaption></figure>

&#x20;**2. Download the mining software**

* download link：<https://github.com/apool-io/apoolminer/releases>

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FTp2ukc6NSMkYAlXBVfzv%2Fimage.png?alt=media&amp;token=3744ee6b-1770-4a42-b3ea-881dd7e6220c" alt=""><figcaption></figcaption></figure>

<mark style="color:red;">the miner comes with manual update and auto update options, download accordingly to your needs.</mark>

3. **Open the file folder and get the following files**
4. **Right click on the "start" and edit the startup script.**

there are three mining mode to choose from: cpu, gpu, all（cpu+gpu）

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FhPHkTW1EiIcqAmbe3hnB%2F%E5%9B%BE%E7%89%873.png?alt=media&amp;token=bdd7b780-2029-4098-b35e-348111b937e2" alt=""><figcaption></figcaption></figure>

Basic Parameters:

* 'account' specify the sub-account name, replace it with your own sub-account;
* 'pool' specify the IP address and port, in Qubic's case: qubic1.hk.apool.io:3334. Check the official announcement for the latest IP address.
* 'worker' specify the mining machine name, which use the machine ip default, and can be customized by the users, the naming rules are：can be up to 15 characters or less, and can contain alphanumeric characters (letters A-Z, numbers 0-9) and symbols.
* ‘--mode 0’, default configuration, all data is placed in GPU VRAM, for typical rigs using PCIEx1 channels, please use this mode

  ‘--mode 1’, hybrid mode, part of the data offloaded to the host memory, performance can be increased by about 10%-20%, standard gaming PC or multi-card servers can use this mode, each card needs to consume additional host memory, please make sure that the system has enough memory configuration, you can follow the log to configure or refer to the following table

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FsIQ84NqnePoeTnbq755e%2Fimage.png?alt=media&amp;token=8fdcd1dd-caf0-4006-b1b7-10c1d2edca61" alt=""><figcaption></figcaption></figure>

CPU Performance Parameters:

* -t, –thread; specify the number of CPU thread \[default: 0, use all threads]

\
&#x20; 5\.  **Save the scripts after change**

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FXcfDnGhUiqO6BV5W0lQ9%2Fb9e934da0e686bf0368372ba9c3c5eb.png?alt=media&amp;token=f205f1d4-4079-4ca1-ae23-6bf340a34290" alt=""><figcaption></figcaption></figure>

6. **Double-click the mouse to start the script. The mining starts.**
