www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LAPACK/BLAS/SciD Windows

reply dsimcha <dsimcha yahoo.com> writes:
Has anyone been able to get BLAS/LAPACK/SciD working on Windows?  If so, how?
 The furthest I've gotten is building SciD, downloading BLAS and LAPACK
prebuilt binaries from http://icl.cs.utk.edu/lapack-for-windows/, and using
Agner Fog's objconv to convert them from COFF to OMF.  Then, when I try to
build a trivial test program, I get:

Symbol Undefined _dgetri_
Symbol Undefined _dgetrf_

Grepping my lapack binaries indicates that getri and getrf are there, but
_getri_ and _getrf_ are not.  It's an underscore issue.

Can anyone either:

1.  Tell me how to fix this?

2.  Tell me where to get BLAS and LAPACK in OMF format that will "just work"
with DMD?
Feb 09 2011
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
AFAIK objconv has the +nu or a similar switch that adds underscores to
symbol names. Hope that helps.
Feb 09 2011
parent dsimcha <dsimcha yahoo.com> writes:
Should have mentioned in my original post, I tried that and it didn't 
work.  I have no idea why.

On 2/9/2011 5:41 PM, Andrej Mitrovic wrote:
 AFAIK objconv has the +nu or a similar switch that adds underscores to
 symbol names. Hope that helps.
Feb 09 2011
prev sibling next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
That's -nu+ actually, or alternatively -au+ which just adds aliases to
existing symbols.

On 2/9/11, Andrej Mitrovic <andrej.mitrovich gmail.com> wrote:
 AFAIK objconv has the +nu or a similar switch that adds underscores to
 symbol names. Hope that helps.
Feb 09 2011
prev sibling parent reply "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
On Wed, 09 Feb 2011 22:30:23 +0000, dsimcha wrote:

 Has anyone been able to get BLAS/LAPACK/SciD working on Windows?  If so,
 how?
  The furthest I've gotten is building SciD, downloading BLAS and LAPACK
 prebuilt binaries from http://icl.cs.utk.edu/lapack-for-windows/, and
 using Agner Fog's objconv to convert them from COFF to OMF.  Then, when
 I try to build a trivial test program, I get:
 
 Symbol Undefined _dgetri_
 Symbol Undefined _dgetrf_
 
 Grepping my lapack binaries indicates that getri and getrf are there,
 but _getri_ and _getrf_ are not.  It's an underscore issue.
 
 Can anyone either:
 
 1.  Tell me how to fix this?
 
 2.  Tell me where to get BLAS and LAPACK in OMF format that will "just
 work" with DMD?
Have you tried asking Bill Baxter? He wrote the original BLAS/LAPACK bindings, so he should know. -Lars
Feb 10 2011
next sibling parent reply %fil <fil learningd.com> writes:
Lars, David,

Did you managed to get in touch with Bill for this? If so, would you be able to
provide a package with SciD including the BLAS/LAPACK in a DMD compatible
format?
I would also be interested in this...

Are there any plans to bring more of these numerical libraries (like SciD or
even
basic linear alg) into Phobos? I would assume this would be very welcomed by a
lot
of D developers, no?

Btw, Lars, many thx for your work on SciD....

fil
Feb 12 2011
parent reply "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
On Sat, 12 Feb 2011 21:05:37 +0000, %fil wrote:

 Lars, David,
 
 Did you managed to get in touch with Bill for this? If so, would you be
 able to provide a package with SciD including the BLAS/LAPACK in a DMD
 compatible format? I would also be interested in this...
I am thinking of cleaning up some small things here and there and making a 0.1 "release" in the form of an easily downloadable zip file. It will of course be a rather arbitrary development snapshot, and in no way a "finished" product, but it may make things easier for potential users. I'm not sure I want to include someone else's prebuilt libraries, but I'll be sure to add a link to the BLAS/LAPACK download David mentioned.
 Are there any plans to bring more of these numerical libraries (like
 SciD or even basic linear alg) into Phobos? I would assume this would be
 very welcomed by a lot of D developers, no?
IMO, there should definitely be some basic linear algebra functionality in Phobos.
 Btw, Lars, many thx for your work on SciD....
You're welcome. :) -Lars
Feb 14 2011
parent reply Caligo <iteronvexor gmail.com> writes:
On Mon, Feb 14, 2011 at 7:30 AM, Lars T. Kyllingstad
<public kyllingen.nospamnet> wrote:

 On Sat, 12 Feb 2011 21:05:37 +0000, %fil wrote:

 Lars, David,

 Did you managed to get in touch with Bill for this? If so, would you be
 able to provide a package with SciD including the BLAS/LAPACK in a DMD
 compatible format? I would also be interested in this...
I am thinking of cleaning up some small things here and there and making a 0.1 "release" in the form of an easily downloadable zip file. It will of course be a rather arbitrary development snapshot, and in no way a "finished" product, but it may make things easier for potential users. I'm not sure I want to include someone else's prebuilt libraries, but I'll be sure to add a link to the BLAS/LAPACK download David mentioned.
 Are there any plans to bring more of these numerical libraries (like
 SciD or even basic linear alg) into Phobos? I would assume this would be
 very welcomed by a lot of D developers, no?
IMO, there should definitely be some basic linear algebra functionality in Phobos.
 Btw, Lars, many thx for your work on SciD....
You're welcome. :) -Lars
How about Eigen? http://eigen.tuxfamily.org/index.php?title=Main_Page I've used it extensively in my C++ projects, and I'm very pleased. Last time I counted, Eigen was about 10-15k lines of C++ code. It's all templates, and it might be the perfect project to translate to D to show off some of D's meta and template features. I only say this because I really miss not having a linear algebra library in D, and I dislike language bindings. I'm still learning D from TDPL, but I would really like to see some sample code in D for doing expression templates. For example, could anyone translate this to D? http://en.wikipedia.org/wiki/Expression_templates It took me about half an hour to understand the code because it's kind of hard to read. I wonder if D's version would be more readable.
Feb 14 2011
parent %fil <fil somewhere.com> writes:
Caligo Wrote:
 
 How about Eigen?
 http://eigen.tuxfamily.org/index.php?title=Main_Page
 
 I've used it extensively in my C++ projects, and I'm very pleased.
 
 Last time I counted, Eigen was about 10-15k lines of C++ code.  It's all
 templates, and it might be the perfect project to translate to D to show off
 some of D's meta and template features.  I only say this because I really
 miss not having a linear algebra library in D, and I dislike language
 bindings.
 
 I'm still learning D from TDPL, but I would really like to see some sample
 code in D for doing expression templates.  For example, could anyone
 translate this to D? http://en.wikipedia.org/wiki/Expression_templates  It
 took me about half an hour to understand the code because it's kind of hard
 to read.  I wonder if D's version would be more readable.
 
last couple of years...but I like that it is fully independent.... time trying to avoid c++ as much as possible), but would not mind trying to work on a translation of eigen to D with the help of others as it would solve the issues of relying on LAPACK or BLAS.... Any other volunteers?
Feb 15 2011
prev sibling parent reply dsimcha <dsimcha yahoo.com> writes:
Good hint.  I found some pre-built binaries at 
http://dsource.org/projects/multiarray , Bill Baxter's old project.  I 
tested them (superficially) and they WORK on Windows w/ DMD 2.052 beta 
and SciD SVN.  Lars, please post this zip file somewhere on your SciD 
site so that other Windows users who want to use SciD don't have to got 
through the same hassle I did to track them down.

On 2/10/2011 7:18 AM, Lars T. Kyllingstad wrote:
 On Wed, 09 Feb 2011 22:30:23 +0000, dsimcha wrote:

 Has anyone been able to get BLAS/LAPACK/SciD working on Windows?  If so,
 how?
   The furthest I've gotten is building SciD, downloading BLAS and LAPACK
 prebuilt binaries from http://icl.cs.utk.edu/lapack-for-windows/, and
 using Agner Fog's objconv to convert them from COFF to OMF.  Then, when
 I try to build a trivial test program, I get:

 Symbol Undefined _dgetri_
 Symbol Undefined _dgetrf_

 Grepping my lapack binaries indicates that getri and getrf are there,
 but _getri_ and _getrf_ are not.  It's an underscore issue.

 Can anyone either:

 1.  Tell me how to fix this?

 2.  Tell me where to get BLAS and LAPACK in OMF format that will "just
 work" with DMD?
Have you tried asking Bill Baxter? He wrote the original BLAS/LAPACK bindings, so he should know. -Lars
Feb 13 2011
parent "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
On Mon, 14 Feb 2011 01:13:51 -0500, dsimcha wrote:

 Good hint.  I found some pre-built binaries at
 http://dsource.org/projects/multiarray , Bill Baxter's old project.  I
 tested them (superficially) and they WORK on Windows w/ DMD 2.052 beta
 and SciD SVN.  Lars, please post this zip file somewhere on your SciD
 site so that other Windows users who want to use SciD don't have to got
 through the same hassle I did to track them down.
Cool! I will do that. :) -Lars
Feb 14 2011