473,503 Members | 1,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lapack/ CLapack

eri
Hi all
I need to convert a Fortran program I wrote some months ago. I need
BLAS / LAPACK routines and it seems to be very difficult to make it
work under Win + MingW32 + DevCPP; so I wonder if there is someone who
has managed to install them and has written a sort of HOWTO.

I've already downloaded the .zip packages from netlib. What I couldn't
find is how to fit them to my needs: I mean, which libs are needed,
which header, how to link them, where to find documentation.

Maybe I can try and retry until something works, but I am really short
on time, so if I could find directions or a no-src-but-many-docs
package, that would be great.

P.S: my previous code was fortran 90, so f2c is not useful

Moreover, is it better to use the original LAPACK compiled from Fortran
(how? how to link functions?) or the f2c-ed CLapack which should be
less performant?

Thanks all

Nov 14 '05 #1
3 3090

"eri" <e.*******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi all
I need to convert a Fortran program I wrote some months ago. I need
BLAS / LAPACK routines and it seems to be very difficult to make it
work under Win + MingW32 + DevCPP; so I wonder if there is someone who
has managed to install them and has written a sort of HOWTO.

P.S: my previous code was fortran 90, so f2c is not useful

Moreover, is it better to use the original LAPACK compiled from Fortran
(how? how to link functions?) or the f2c-ed CLapack which should be
less performant?

You're trying to take this far afield from Standard C. CPP looks like C++
to me; if that's what makes it "very difficult," you'll get no sympathy
here.
There aren't many headers involved, compared with typical C projects;
probably just one for BLAS and one for LAPACK. If you choose to link the
original Fortran libraries, it is sufficient to translate those calls to C.
If you are having difficulty learning the C to Fortran interface, you can
easily make a short dummy f77 function with the calls you need, and use f2c
to see how it's done. No need to translate an entire application for that
purpose.
I can't imagine that you've used anywhere near a full cross section of BLAS
and LAPACK, so the idea that a C version is "less performant" is an
unjustified generalization. I'm not certain how effective restrict keyword
will be in your setting; otherwise, it is the one missing feature in f2c
which would enable most of the functions to maintain performance.
You may not be able to get by easily without Google, just use it.
If you are willing to face a small level of difficulty, you may be able to
use commercial libraries like Intel MKL. Then you may find it necessary to
look at the name mangling conventions, which would be easier to do with an
nm or dumpbin utility. The CDECL version may have the string length
arguments placement in agreement with f2c; go find out.
You've probably already figured out that other newsgroups would advise you
there's nothing wrong with using f90 and C together, and the topicality
police will jump on that here.
Nov 14 '05 #2
eri
> You're trying to take this far afield from Standard C. CPP looks
like C++
to me; if that's what makes it "very difficult," you'll get no sympathy here.
DevCPP is just the name of the editor. I'm developing ANSI C on a
windows machine. I can see the difference between C and C++ and I'm
defintely not interested in the second, at the moment.
There aren't many headers involved, compared with typical C projects; probably just one for BLAS and one for LAPACK. If you choose to link the original Fortran libraries, it is sufficient to translate those calls to C. If you are having difficulty learning the C to Fortran interface, you can easily make a short dummy f77 function with the calls you need, and use f2c to see how it's done. No need to translate an entire application for that purpose.


Unfortunately I have to solve a problem quickly, so I'm looking for a
quick solution. You say "probably just one for BLAS and one for
LAPACK": even I can say "probably", but I was asking for experiences,
which are certain, not probable. I thank you for the time you spent
writing this reply, but sure you didn't help me much.

Other ideas?

Nov 14 '05 #3
On 4 May 2005 07:48:41 -0700, "eri" <e.*******@gmail.com> wrote:
You're trying to take this far afield from Standard C. CPP looks

like C++
to me; if that's what makes it "very difficult," you'll get no

sympathy
here.


DevCPP is just the name of the editor. I'm developing ANSI C on a
windows machine. I can see the difference between C and C++ and I'm
defintely not interested in the second, at the moment.
There aren't many headers involved, compared with typical C projects;

probably just one for BLAS and one for LAPACK. If you choose to link

the
original Fortran libraries, it is sufficient to translate those calls

to C.
If you are having difficulty learning the C to Fortran interface, you

can
easily make a short dummy f77 function with the calls you need, and

use f2c
to see how it's done. No need to translate an entire application for

that
purpose.


Unfortunately I have to solve a problem quickly, so I'm looking for a
quick solution. You say "probably just one for BLAS and one for
LAPACK": even I can say "probably", but I was asking for experiences,
which are certain, not probable. I thank you for the time you spent
writing this reply, but sure you didn't help me much.

Other ideas?


Yes. Post your question in an appropriate newsgroup. None of BLAS /
LAPACK, Win, MingW32, or DevCPP are topical here. I can't suggest
which newsgroup, but you can try searching Google groups.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3059
by: drife | last post by:
Hello, Could someone please provide instructions for install Numeric with ATLAS and LAPACK? I've actually done this correctly, I think. But I don't see any difference in the speed. I'm...
1
3225
by: pervinder | last post by:
Hi, I am building a c++ executable which uses fortan math libs. blas, lapack etc. But when i build this on HP-UX, i get below linker errors while it build without anyissues on Sun and Linux...
0
620
by: Darren L. Weber | last post by:
The following is a first attempt to almost create a shell script for installation of ATLAS and LAPACK. It does not work right now and it is specific to a particular platform. It is posted here to...
7
2134
by: taoyangsjtu | last post by:
Dear friends, Now, I have just installed the system with full fedora core 4. I had to use lapack, but I don't know how to install and use it. Can anybody tell me the installation process in...
1
3437
by: Ken Dere | last post by:
I am trying to install numpy-0.9.8 prior to installing scipy (0.4.9) on a machine running Suse 10.0 with Python 2.4 I am able to get numpy installed to the point when I import it I can do the...
2
2549
by: Frédéric Degraeve | last post by:
Hello, My compiler is visual 7.1 ( Microsoft Visual C++ .NET ). I work on a c++ library for a big company which do many scientific computes. I want to integrate lapack++ inside the library by...
2
2980
by: aberte | last post by:
Hi, i'm learning how to use lapack library (in particular, Intel MKL). I wish to know how I have to format the my inputs. I'm calling lapack functions from c++ (zhetri, zhemm, zgemm, zhseqr,...
1
5109
by: Preben | last post by:
Hi, don't know if this is the correct group, but try anyway. I would like to use boostbindings from the boost sandbox together with my project where I use boost::numeric::ublas vectors and...
2
1608
by: wab4u | last post by:
Hi, I am using Lapack++ library to solve linear equations. The problem is that when I compile my sources as a static library and use it on other computer it gives errors relating to the lapack dll....
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.