update installation instructions
This commit is contained in:
parent
6b3b8aa6ae
commit
183d34e01e
@ -12,14 +12,33 @@ differentiable program written on top of
|
|||||||
|
|
||||||
## Installation
|
## 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
|
To install the library, you can simply publish to the local
|
||||||
Maven repository:
|
Maven repository:
|
||||||
```
|
```
|
||||||
./gradlew -q :kmath-noa:publishToMavenLocal
|
./gradlew -q :kmath-noa:publishToMavenLocal
|
||||||
```
|
```
|
||||||
This will fetch and build native artifacts as well.
|
This will fetch and build the `JNI` wrapper `jnoa`.
|
||||||
Currently, we support only
|
|
||||||
the [GNU](https://gcc.gnu.org/) toolchain. For `GPU` kernels, we require a compatible
|
In your own application add the local dependency:
|
||||||
[CUDA](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)
|
```kotlin
|
||||||
installation. If you are on Windows, we recommend setting up
|
repositories {
|
||||||
everything on [WSL](https://docs.nvidia.com/cuda/wsl-user-guide/index.html).
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user