[
https://issues.apache.org/jira/browse/SINGA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15564861#comment-15564861
]
ASF subversion and git services commented on SINGA-259:
-------------------------------------------------------
Commit c967169bc1832239fc79a89171e8b372a04e143b in incubator-singa's branch
refs/heads/master from [~flytosky]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=c967169 ]
SINGA-259 Add maven pom file for building java classes
This ticket would refactor some API in *.i files and create the pom.xml
to use maven to compile the java classes. Java unittest is also enabled
with a simple example.
To test this ticket,
1. compile singa with java (cuda and cudnn are optional) in `build/`
cmake -DUSE_JAVA=ON -DUSE_PYTHON=OFF ..
make
2. goto build/java and run the unit tests
export LD_LIBRARY_PATH=<path to
build>/java/lib:$LD_LIBRARY_PATH
mvn test
The folder structure for the java project is
java/
pom.xml
lib/libsinga_wrap.so
src/
main/java/org/apache/singa/
swig/
proto/
test/org/apache/singa/
Fixed a bug in tensor.py::from_numpy() which handled int array incorrectly.
> Add maven pom file for building java classes
> --------------------------------------------
>
> Key: SINGA-259
> URL: https://issues.apache.org/jira/browse/SINGA-259
> Project: Singa
> Issue Type: New Feature
> Reporter: wangwei
>
> SINGA-244 has generated java files for the c++ code.
> This ticket would refactor some API in *.i files and create the pom.xml to
> use maven to compile the java classes. Java unittest is also enabled with a
> simple example.
> To test this ticket,
> 1. compile singa with java (cuda and cudnn are optional) in `build/`
> {code}
> cmake -DUSE_JAVA=ON -DUSE_PYTHON=OFF ..
> make
> {code}
> 2. goto build/java and run the unit tests
> {code}
> export LD_LIBRARY_PATH=<path to build>/java/lib:$LD_LIBRARY_PATH
> mvn test
> {code}
> The folder structure for the java project is
> {code}
> java/
> pom.xml
> lib/libsinga_wrap.so
> src/
> main/java/org/apache/singa/
> swig/
> proto/
> test/org/apache/singa/
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)