| Thread overview | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 09, 2011 LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
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? | ||||
February 09, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dsimcha | AFAIK objconv has the +nu or a similar switch that adds underscores to symbol names. Hope that helps. | |||
February 09, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
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.
>
| ||||
February 09, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | 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.
| |||
February 10, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dsimcha | 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
| |||
February 12, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | 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 | |||
February 14, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | 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 | |||
February 14, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dsimcha | 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
| |||
February 14, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to %fil | 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 | |||
February 14, 2011 Re: LAPACK/BLAS/SciD Windows | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad Attachments:
| 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. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply