escrito-docker/.m2/repository/org/nd4j/nd4j-native/0.9.1/nd4j-native-0.9.1.pom

289 lines
12 KiB
Plaintext

<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">
<parent>
<artifactId>nd4j-backend-impls</artifactId>
<groupId>org.nd4j</groupId>
<version>0.9.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>nd4j-native</artifactId>
<name>nd4j-native</name>
<properties>
<openblas.version>0.2.19</openblas.version>
<env.LIBND4J_HOME>${basedir}/../../../../libnd4j/</env.LIBND4J_HOME>
</properties>
<dependencies>
<dependency>
<groupId>${dependency.groupId}</groupId>
<artifactId>${dependency.artifactId}</artifactId>
<version>${dependency.version}</version>
<type>${dependency.packaging}</type>
<classifier>${dependency.classifier}</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>${javacpp.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>openblas</artifactId>
<version>${openblas.version}-${javacpp-presets.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>openblas</artifactId>
<version>${openblas.version}-${javacpp-presets.version}</version>
<classifier>${dependency.platform}</classifier>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-base64</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-jackson</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testSourceDirectory>../../nd4j-tests/src/test/java</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${user.dir}:${env.LIBND4J_HOME}/blasbuild/cpu/blas/</LD_LIBRARY_PATH>
</environmentVariables>
<includes>
<include>*.java</include>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
<include>**/*TestCase.java</include>
</includes>
<junitArtifactName>junit:junit</junitArtifactName>
<systemPropertyVariables>
<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>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>javacpp.parser</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<skipMain>${javacpp.parser.skip}</skipMain>
<includes>
<include>org/nd4j/nativeblas/Nd4jCpuPresets.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>${javacpp.version}</version>
<dependencies>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<configuration>
<properties>${javacpp.platform}</properties>
<propertyKeysAndValues>
<property>
<name>platform.root</name>
<value>${javacpp.platform.root}</value>
</property>
<property>
<name>platform.compiler</name>
<value>${javacpp.platform.compiler}</value>
</property>
</propertyKeysAndValues>
<classPaths>
<classPath>${project.build.outputDirectory}</classPath>
</classPaths>
<includePaths>
<includePath>${env.LIBND4J_HOME}/blas</includePath>
<includePath>${env.LIBND4J_HOME}/include</includePath>
<includePath>${env.LIBND4J_HOME}/include/cnpy</includePath>
</includePaths>
<linkPath>${env.LIBND4J_HOME}/blasbuild/cpu/blas</linkPath>
</configuration>
<executions>
<execution>
<id>javacpp.parser</id>
<phase>generate-sources</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<skip>${javacpp.parser.skip}</skip>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
<classOrPackageName>org.nd4j.nativeblas.Nd4jCpuPresets</classOrPackageName>
</configuration>
</execution>
<execution>
<id>javacpp.compiler</id>
<phase>process-classes</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<skip>${javacpp.compiler.skip}</skip>
<classOrPackageName>org.nd4j.nativeblas.Nd4jCpu</classOrPackageName>
<copyLibs>true</copyLibs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>libnd4j-checks</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>env.LIBND4J_HOME</property>
<message>You must set the LIBND4J_HOME environment variable!</message>
<regex>.*/.*</regex>
<regexMessage>!!! LIBND4J_HOME must be a valid unix path!</regexMessage>
</requireProperty>
<requireFilesExist>
<files>
<file>${env.LIBND4J_HOME}/blas/NativeOps.h</file>
<file>${env.LIBND4J_HOME}/blasbuild/cpu/blas</file>
</files>
<message>!!! You have to compile libnd4j with cpu support first!</message>
</requireFilesExist>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>macosx-gcc6</id>
<activation>
<file>
<exists>/usr/local/bin/g++-6</exists>
</file>
</activation>
<properties>
<javacpp.platform.compiler>/usr/local/bin/g++-6</javacpp.platform.compiler>
</properties>
</profile>
<profile>
<id>macosx-gcc5</id>
<activation>
<file>
<exists>/usr/local/bin/g++-5</exists>
</file>
</activation>
<properties>
<javacpp.platform.compiler>/usr/local/bin/g++-5</javacpp.platform.compiler>
</properties>
</profile>
<profile>
<id>macosx</id>
<activation>
<os><family>mac os x</family></os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<configuration>
<compilerOptions>
<compilerOption>-static-libgcc</compilerOption>
<compilerOption>-static-libstdc++</compilerOption>
</compilerOptions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>mingw</id>
<activation>
<os><family>windows</family></os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<configuration>
<properties>${javacpp.platform}-mingw</properties>
<compilerOptions>
<compilerOption>-static-libgcc</compilerOption>
<compilerOption>-static-libstdc++</compilerOption>
<compilerOption>-Wl,-Bstatic</compilerOption>
<compilerOption>-lstdc++</compilerOption>
<compilerOption>-lgcc</compilerOption>
<compilerOption>-lgcc_eh</compilerOption>
<compilerOption>-lpthread</compilerOption>
<compilerOption>-Wl,-Bdynamic</compilerOption>
</compilerOptions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>