From 183d34e01e7e58efec25e89163abfe943296fdc3 Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Tue, 13 Jul 2021 09:37:06 +0100 Subject: [PATCH] update installation instructions --- kmath-noa/README.md | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/kmath-noa/README.md b/kmath-noa/README.md index f1c193f9b..b69d0ce93 100644 --- a/kmath-noa/README.md +++ b/kmath-noa/README.md @@ -12,14 +12,33 @@ differentiable program written on top of ## Installation +Currently, we support only +the [GNU](https://gcc.gnu.org/) toolchain for the native artifacts. +For `GPU` kernels, we require a compatible +[CUDA](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) +installation. If you are on Windows, we recommend setting up +everything on [WSL](https://docs.nvidia.com/cuda/wsl-user-guide/index.html). + To install the library, you can simply publish to the local Maven repository: ``` ./gradlew -q :kmath-noa:publishToMavenLocal ``` -This will fetch and build native artifacts as well. -Currently, we support only -the [GNU](https://gcc.gnu.org/) toolchain. For `GPU` kernels, we require a compatible -[CUDA](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) -installation. If you are on Windows, we recommend setting up -everything on [WSL](https://docs.nvidia.com/cuda/wsl-user-guide/index.html). +This will fetch and build the `JNI` wrapper `jnoa`. + +In your own application add the local dependency: +```kotlin +repositories { + mavenCentral() + mavenLocal() +} + +dependencies { + implementation("space.kscience:kmath-noa:0.3.0-dev-14") +} +``` +To load the native library you will need to add to the VM options: +``` +-Djava.library.path=${HOME}/.konan/third-party/noa-v0.0.1/cpp-build/kmath +``` +