[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian-med-packaging] j2f package




Le 3/21/12 9:46 PM, Andreas Tille a écrit :
> Hi Olivier,
>
> On Wed, Mar 21, 2012 at 05:25:15PM +0100, Olivier Sallou wrote:
>> I could go a little futher.
>> I think you also need jarpack,netlib-java and jlapack.
>> I could generate jarpack and netlib-java stuff (not packaged yet, from
>> source), but I cannot find anywhere jlapack source.
>> For jlapack, there are only binaries and no instructions on how to
>> generate those. I sent a mail upstream to have information, I will let
>> you know.
> I think when we were in Southport I recieved som email of an author
> who pointed me to
>
>     http://www.netlib.org/java/f2j/
>
> providing a link saying
>
> file	jlapack-0.8.tgz
> for	JLAPACK source and class files (tgz archive)
> by	Keith Seymour <seymour@cs.utk.edu>
> size    1.3M
>
> but this is not really a source archive.  I somehow have the suspicion
> that the sources would be the result of some F2J process.  When digging
> deeper I've got another hint at
>
>     http://icl.cs.utk.edu/f2j/faq/index.html#320
>
> and the suggested
>
> cvs -d:pserver:anonymous@f2j.cvs.sourceforge.net:/cvsroot/f2j login
> cvs -z3 -d:pserver:anonymous@f2j.cvs.sourceforge.net:/cvsroot/f2j co -r jlapack0_8 -P f2j
>
>
> resulted in a f2j dir containing a subdirectory jlapack-3.1.1 which
> seems to contain the relevant Fortran code for the conversion to Java.
> The Fortran code seems to be some version of BLAS which shows
> differences to some Debian packaged sources I found (but I do not
> remember any more those details.
I followed instructions there and could compile jlapack using f2j package.
This generated some jars:
./src/lapack/lapack.jar
./src/blas/blas.jar
./src/error_reporting/xerbla.jar
(and others not usefull here)

Then I compiled netlib-java using those libraries, providing
netlib-java-0.9.3.jar, using updated build.xml:
    <property name="javac.classpath"
value="/usr/share/java/junit.jar:/usr/share/java/f2jutil.jar:/home/osallou/DEBIAN-MED/netlib/jlapack/f2j/jlapack-3.1.1/src/blas/blas.jar:/home/osallou/DEBIAN-MED/netlib/jlapack/f2j/jlapack-3.1.1/src/lapack/lapack.jar:/home/osallou/DEBIAN-MED/netlib/jlapack/f2j/jlapack-3.1.1/src/error_reporting/xerbla.jar"/>

(path to jar files hard coded here for example)

Then I could successfully compile mtj with build.xml modification:
    <property name="javac.classpath"
value="/usr/share/java/junit.jar:/usr/share/java/f2jutil.jar:/home/osallou/DEBIAN-MED/netlib/netlib-java-0.9.3/netlib-java-0.9.3.jar"/>


So there are several steps needed:
1) package jlapack. Though there is no source code archive, one need to
get it from cvs. Should we create an archive and provide it ourselves?
Regarding different blas fortran code, should we try using it in place
of provided one in cvs ?
2) package netlib-java (got source from
http://code.google.com/p/netlib-java/downloads/detail?name=netlib-java-0.9.3.zip),
using jlapack
3) update build.xml to use netlib-java lib + f2j  to generat mtj


Olivier


>
> Thanks for your work on this
>
>     Andreas.
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



Reply to: