From e67e25ba30035cdca8620a9d057ad7999ab2ad62 Mon Sep 17 00:00:00 2001 From: Alex Black Date: Tue, 2 Jul 2019 19:23:22 +1000 Subject: [PATCH] libnd4j: use buildnativeoperations.sh parallel build by default in maven (#38) * Libnd4j: parallel build in maven by default Signed-off-by: AlexDBlack * build-helper-maven-plugin - version property not hardcoded version Signed-off-by: AlexDBlack --- libnd4j/pom.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/libnd4j/pom.xml b/libnd4j/pom.xml index 83f29b17f..be3136fc5 100644 --- a/libnd4j/pom.xml +++ b/libnd4j/pom.xml @@ -73,6 +73,7 @@ ${libnd4j.platform} + @@ -85,6 +86,24 @@ + + + org.codehaus.mojo + build-helper-maven-plugin + ${maven-build-helper-plugin.version} + + + get-cpu-count + + cpu-count + + + cpu.core.count + + + + + org.bytedeco javacpp @@ -154,6 +173,8 @@ --compute ${libnd4j.compute} ${libnd4j.tests} + -j + ${libnd4j.buildthreads} ${project.basedir} @@ -216,6 +237,30 @@ + + + libnd4-single-thread + + + libnd4j.singlethread + + + + 1 + + + + libnd4-multi-thread + + + !libnd4j.singlethread + + + + + ${cpu.core.count} + + chip