| 1 |
# rocIsa |
| 2 |
|
| 3 |
This ia a Python module wrapped with Nanobind. Need to install ``nanobind`` before compiling this module. |
| 4 |
|
| 5 |
## How to install |
| 6 |
|
| 7 |
``` |
| 8 |
pip3 install nanobind |
| 9 |
``` |
| 10 |
|
| 11 |
## How to build the module independently |
| 12 |
|
| 13 |
Simple version. |
| 14 |
|
| 15 |
``` |
| 16 |
mkdir build |
| 17 |
cd build |
| 18 |
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=$ROCM_PATH/bin/amdclang++ .. |
| 19 |
``` |
| 20 |
|
| 21 |
If you want to specify a specifif Python executable, |
| 22 |
|
| 23 |
``` |
| 24 |
mkdir build |
| 25 |
cd build |
| 26 |
cmake -DPython_EXECUTABLE=<path to exe> -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=$ROCM_PATH/bin/amdclang++ .. |
| 27 |
make -j8 |
| 28 |
``` |
| 29 |
|
| 30 |
## How to use the module without installing |
| 31 |
|
| 32 |
``` |
| 33 |
export PYTHONPATH=<path-to-build-folder>/lib |
| 34 |
``` |
| 35 |
|
| 36 |
For more information, please check the doc (on-going). |