Skip to content

Commit

Permalink
linux-x86_64 builds successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu committed Dec 18, 2015
1 parent d75f9ec commit f0028c5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,14 @@ mxnet-scala/project/plugins/project/
scala-package/*/target/
scala-package/*/*/target/

# IDE specific
*.scala_dependencies
*.worksheet
*.idea
*.iml
#eclipse
.classpath
.project
.settings

# IDE specific
mxnet-scala/.scala_dependencies
mxnet-scala/.worksheet
mxnet-scala/.idea
mxnet-scala/*.iml


42 changes: 40 additions & 2 deletions scala-package/native/linux-x86_64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,39 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<exportAntProperties>true</exportAntProperties>
<tasks>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />
<if>
<isset property="intel" />
<then>
<property name="use.cblas" value="0" />
<property name="use.mkl" value="1" />
<property name="cflags.blas" value="-I${intel}/mkl/include" />
<property name="ldflags.blas" value="-L${intel}/mkl/lib -L${intel}/lib" />
</then>
<else>
<property name="use.cblas" value="1" />
<property name="use.mkl" value="0" />
<property name="cflags.blas" value="" />
<property name="ldflags.blas" value="-lcblas" />
</else>
</if>
</tasks>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
Expand All @@ -46,7 +79,7 @@
<source>
<directory>../src/main/native</directory>
<fileNames>
<fileName>ml_dmlc_mxnet_native_c_api.c</fileName>
<fileName>ml_dmlc_mxnet_native_c_api.cc</fileName>
</fileNames>
</source>
</sources>
Expand All @@ -59,7 +92,12 @@
</compilerMiddleOption>
</compilerMiddleOptions>
<compilerEndOptions>
<compilerEndOption>-I../../../include/mxnet</compilerEndOption>
<compilerEndOption>-I../../../include</compilerEndOption>
<compilerEndOption>-I../../../dmlc-core/include</compilerEndOption>
<compilerEndOption>-I../../../mshadow ${cflags.blas}</compilerEndOption>
<compilerEndOption>-DMSHADOW_USE_CUDA=0</compilerEndOption>
<compilerEndOption>-DMSHADOW_USE_CBLAS=${use.cblas}</compilerEndOption>
<compilerEndOption>-DMSHADOW_USE_MKL=${use.mkl}</compilerEndOption>
<compilerEndOption>-fPIC</compilerEndOption>
</compilerEndOptions>
<linkerStartOptions>
Expand Down

0 comments on commit f0028c5

Please sign in to comment.