View previous topic :: View next topic |
Author |
Message |
Fausto
Joined: 09 Oct 2013 Posts: 2
|
Posted: Wed Oct 09, 2013 2:21 pm Post subject: lapack95 and openblas |
|
|
Hello all,
I read some old posts about BLAS/LAPACK linking.
My problem is slightly different. I want to use LAPACK95 interface to LAPACK/BLAS and instead of reference LAPACK/BLAS, I'd like to use openblas.
So, I downloaded the lapack95 sources and tried to generate a static library.
I compiled without probs lapack95, generated the obj files and tried to create a static library with slink command.
I had success to create that library, but now how can I use it ? Just to add more info, I'm using FTN95 express, so I searched in the link option (in the project properties) but I didn't found anything related to external static libraries.
By the way, also the command line is fine for me
The next step is using openblas. I have DLL, and I read I could use something call STDCALL. Please could be more specific about this subject ?
thanks a lot,
Fausto |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Oct 09, 2013 8:51 pm Post subject: |
|
|
Have you tried loading the static library in a SLINK script?
Alternatively you should be able to provide the static library as a Reference in a Visual Studio or Plato project.
For STDCALL try searching for this in the the FTN95 help file.
If you are using a third party DLL that contains STDCALL functions then the help file will tell you how to interface with it.
Alternatively you can get a general impression by looking for STDCALL in some of the INCLUDE files that come with FTN95. |
|
Back to top |
|
 |
Fausto
Joined: 09 Oct 2013 Posts: 2
|
Posted: Wed Oct 09, 2013 9:49 pm Post subject: Re: |
|
|
PaulLaidler wrote: | Have you tried loading the static library in a SLINK script?
Alternatively you should be able to provide the static library as a Reference in a Visual Studio or Plato project.
For STDCALL try searching for this in the the FTN95 help file.
If you are using a third party DLL that contains STDCALL functions then the help file will tell you how to interface with it.
Alternatively you can get a general impression by looking for STDCALL in some of the INCLUDE files that come with FTN95. |
If use SLINK with load command (from command line), I am able to include lapack95.lib
So the next step is use DLL from Openblas. Unfortunately it seems that DLL is not compatible with SLINK.
Becasue the Openblas build process is quite complex, I have to check if I can using it to build from the scratch.
If I want to use the graphical environment, where I can write the lapack95.lib ? In the linker option ?
thanks
Fausto |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu Oct 10, 2013 7:22 am Post subject: |
|
|
The information you need should be in the help file (ftn95.chm) under Win32 Platform->Using the linker. |
|
Back to top |
|
 |
|