forked from icarusglider/PyRai
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ __pycache__/ | |
build/ | ||
dist/ | ||
nanopy/__pycache__/ | ||
docs/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
nanopy | ||
====== | ||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
install | ||
npy | ||
rpc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Installation | ||
############ | ||
nanopy includes ``C`` extensions for work generation and signing. | ||
|
||
.. code-block:: bash | ||
sudo apt-get install gcc python3-dev | ||
pip install nanopy | ||
* Instead of the default (``gcc``), point to another ``C`` compiler by prepending the installation command with ``CC=path/to/c/compiler``. | ||
.. code-block:: bash | ||
CC=path/to/c/compiler pip install nanopy | ||
* When using ``Visual C``, additionally prepend the installation command with ``USE_VC=1``. | ||
.. code-block:: bash | ||
CC=path/to/visual/c USE_VC=1 pip install nanopy | ||
* For GPU, appropriate ``OpenCL ICD`` headers are required. | ||
.. code-block:: bash | ||
sudo apt-get install ocl-icd-opencl-dev nvidia/amd-opencl-icd | ||
* Enable GPU usage by prepending the installation command with ``USE_GPU=1``. | ||
.. code-block:: bash | ||
USE_GPU=1 pip install nanopy | ||