From 6b3b8aa6ae4b95ade10382cc38a5f8d18a9d4612 Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Mon, 12 Jul 2021 21:12:02 +0100 Subject: [PATCH] dependencies fixed --- kmath-noa/README.md | 17 ++++++++--------- kmath-noa/build.gradle.kts | 6 +++--- kmath-tensors/build.gradle.kts | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/kmath-noa/README.md b/kmath-noa/README.md index 9b86e1962..f1c193f9b 100644 --- a/kmath-noa/README.md +++ b/kmath-noa/README.md @@ -12,15 +12,14 @@ differentiable program written on top of ## Installation -Currently, to build native artifacts, we support only -the [GNU](https://gcc.gnu.org/) toolchain. For `GPU` kernels, we require a compatible +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). - -To install the library, simply publish the modules `kmath-tensors` -and `kmath-noa` locally: -``` -./gradlew -q :kmath-tensors:publishToMavenLocal :kmath-noa:publishToMavenLocal -``` - diff --git a/kmath-noa/build.gradle.kts b/kmath-noa/build.gradle.kts index 46ee2de73..611ab8159 100644 --- a/kmath-noa/build.gradle.kts +++ b/kmath-noa/build.gradle.kts @@ -15,7 +15,7 @@ plugins { description = "Wrapper for the Bayesian Computation library NOA on top of LibTorch" dependencies { - api(project(":kmath-tensors")) + implementation(project(":kmath-tensors")) } val home: String = System.getProperty("user.home") @@ -185,8 +185,8 @@ val buildCpp by tasks.registering { tasks { withType{ systemProperty("java.library.path", - //"$cppBuildDir/kmath" - "$home/devspace/noa/cmake-build-release/kmath") + "$cppBuildDir/kmath") + //"$home/devspace/noa/cmake-build-release/kmath") } } diff --git a/kmath-tensors/build.gradle.kts b/kmath-tensors/build.gradle.kts index b7f24dc6a..92f87b927 100644 --- a/kmath-tensors/build.gradle.kts +++ b/kmath-tensors/build.gradle.kts @@ -9,7 +9,7 @@ kotlin.sourceSets { commonMain { dependencies { api(project(":kmath-core")) - api(project(":kmath-stat")) + implementation(project(":kmath-stat")) } } }