2019-06-06 14:21:15 +02:00
|
|
|
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~ Copyright (c) 2015-2018 Skymind, Inc.
|
|
|
|
~
|
|
|
|
~ This program and the accompanying materials are made available under the
|
|
|
|
~ terms of the Apache License, Version 2.0 which is available at
|
|
|
|
~ https://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
~
|
|
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
~ License for the specific language governing permissions and limitations
|
|
|
|
~ under the License.
|
|
|
|
~
|
|
|
|
~ SPDX-License-Identifier: Apache-2.0
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
|
|
|
|
|
2020-04-20 02:27:13 +02:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2019-06-06 14:21:15 +02:00
|
|
|
<parent>
|
|
|
|
<artifactId>nd4j-backends</artifactId>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>nd4j-tests</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<name>nd4j-tests</name>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
<scala.binary.version>2.11</scala.binary.version>
|
|
|
|
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>
|
|
|
|
<maven.compiler.testSource>1.8</maven.compiler.testSource>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>1.8</source>
|
|
|
|
<target>1.8</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>8</source>
|
|
|
|
<target>8</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
2019-11-14 09:38:20 +01:00
|
|
|
|
2019-06-06 14:21:15 +02:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<artifactId>nd4j-api</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<artifactId>nd4j-native-api</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Shaded version of Jackson -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<artifactId>jackson</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
<version>${logback.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-core</artifactId>
|
|
|
|
<version>${logback.version}</version>
|
|
|
|
</dependency>
|
2019-11-14 09:38:20 +01:00
|
|
|
|
2019-06-06 14:21:15 +02:00
|
|
|
<dependency>
|
2019-11-14 09:38:20 +01:00
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
|
<version>5.0.2.RELEASE</version>
|
|
|
|
<scope>test</scope>
|
2019-06-06 14:21:15 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-math3</artifactId>
|
|
|
|
<version>3.6.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.reflections</groupId>
|
|
|
|
<artifactId>reflections</artifactId>
|
|
|
|
<version>${reflections.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>*</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2020-01-22 12:27:01 +01:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<artifactId>nd4j-common-tests</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-06-06 14:21:15 +02:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
|
|
<version>2.19.1</version>
|
|
|
|
</plugin>
|
|
|
|
<!-- Test coverage -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
|
|
<version>2.7</version>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>testresources</id>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>nd4j-testresources</id>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>nd4j-tests-cpu</id>
|
|
|
|
<activation>
|
2019-08-29 05:54:48 +02:00
|
|
|
<activeByDefault>false</activeByDefault>
|
2019-06-06 14:21:15 +02:00
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
|
|
|
<artifactId>nd4j-native</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<environmentVariables>
|
2020-04-20 02:27:13 +02:00
|
|
|
<LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${user.dir}:${libnd4jhome}/blasbuild/cpu/blas/
|
|
|
|
</LD_LIBRARY_PATH>
|
2019-06-06 14:21:15 +02:00
|
|
|
</environmentVariables>
|
|
|
|
<testSourceDirectory>src/test/java</testSourceDirectory>
|
|
|
|
<includes>
|
|
|
|
<include>*.java</include>
|
|
|
|
<include>**/*.java</include>
|
|
|
|
<include>**/Test*.java</include>
|
|
|
|
<include>**/*Test.java</include>
|
|
|
|
<include>**/*TestCase.java</include>
|
|
|
|
</includes>
|
|
|
|
<junitArtifactName>junit:junit</junitArtifactName>
|
|
|
|
<systemPropertyVariables>
|
2020-04-20 02:27:13 +02:00
|
|
|
<org.nd4j.linalg.defaultbackend>org.nd4j.linalg.cpu.nativecpu.CpuBackend
|
|
|
|
</org.nd4j.linalg.defaultbackend>
|
|
|
|
<org.nd4j.linalg.tests.backendstorun>org.nd4j.linalg.cpu.nativecpu.CpuBackend
|
|
|
|
</org.nd4j.linalg.tests.backendstorun>
|
2019-06-06 14:21:15 +02:00
|
|
|
</systemPropertyVariables>
|
|
|
|
<!--
|
|
|
|
Maximum heap size was set to 8g, as a minimum required value for tests run.
|
|
|
|
Depending on a build machine, default value is not always enough.
|
2019-07-22 21:58:25 +02:00
|
|
|
|
|
|
|
For testing large zoo models, this may not be enough (so comment it out).
|
2019-06-06 14:21:15 +02:00
|
|
|
-->
|
|
|
|
<argLine>-Ddtype=float -Xmx8g</argLine>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>nd4j-tests-cuda</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.nd4j</groupId>
|
2019-11-29 06:31:03 +01:00
|
|
|
<artifactId>nd4j-cuda-10.2</artifactId>
|
2019-06-06 14:21:15 +02:00
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.surefire</groupId>
|
|
|
|
<artifactId>surefire-junit47</artifactId>
|
|
|
|
<version>2.19.1</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<configuration>
|
|
|
|
<environmentVariables>
|
2020-04-20 02:27:13 +02:00
|
|
|
<LD_LIBRARY_PATH>
|
|
|
|
${env.LD_LIBRARY_PATH}:${user.dir}:${libnd4jhome}/blasbuild/cuda/blas/
|
|
|
|
</LD_LIBRARY_PATH>
|
2019-06-06 14:21:15 +02:00
|
|
|
</environmentVariables>
|
|
|
|
<testSourceDirectory>src/test/java</testSourceDirectory>
|
|
|
|
<includes>
|
|
|
|
<include>*.java</include>
|
|
|
|
<include>**/*.java</include>
|
|
|
|
<include>**/Test*.java</include>
|
|
|
|
<include>**/*Test.java</include>
|
|
|
|
<include>**/*TestCase.java</include>
|
|
|
|
</includes>
|
|
|
|
<junitArtifactName>junit:junit</junitArtifactName>
|
|
|
|
<systemPropertyVariables>
|
2020-04-20 02:27:13 +02:00
|
|
|
<org.nd4j.linalg.defaultbackend>org.nd4j.linalg.jcublas.JCublasBackend
|
|
|
|
</org.nd4j.linalg.defaultbackend>
|
|
|
|
<org.nd4j.linalg.tests.backendstorun>org.nd4j.linalg.jcublas.JCublasBackend
|
|
|
|
</org.nd4j.linalg.tests.backendstorun>
|
2019-06-06 14:21:15 +02:00
|
|
|
</systemPropertyVariables>
|
|
|
|
<!--
|
|
|
|
Maximum heap size was set to 6g, as a minimum required value for tests run.
|
|
|
|
Depending on a build machine, default value is not always enough.
|
|
|
|
-->
|
2020-02-05 07:07:36 +01:00
|
|
|
<argLine>-Ddtype=float -Dfile.encoding=UTF-8 -Xmx6g</argLine>
|
2019-06-06 14:21:15 +02:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
</project>
|