CXML for Compaq Visual Fortran 6.6

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

CXML for Compaq Visual Fortran 6.6

Postby jacky8018 » Wed Apr 06, 2011 6:13 pm

Hi

I am new to the use of LAPACK (CXML for CVF V6.6). I managed to install CXML and successfully run the free-form example (as supplied) calling SAXPY and it worked fine without any hitch. However when I tried to invoke another subroutine DGELSY, it gives the linking error

Compiling Fortran...
D:\D830_MyDocuments\SkidDesign\GELSY_TEST\GELSY.F
Linking...
GELSY.OBJ : error LNK2001: unresolved external symbol _DGELSY@48
Debug/GELSY_TEST.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
[code][/code]
GELSY_TEST.exe - 2 error(s), 0 warning(s)

It appears that the routine cannot be found within CXML. Can anyone suggest how to get around it? I'm sorry if this sounds daft. The environmental setting is identical to the case using SAXPY and the full program listing is shown below.

PROGRAM GELSY
INCLUDE 'CXML_INCLUDE.F90'
DOUBLEPRECISION A(3,2),B(3),RCOND,WORK(9)
INTEGER JVPT(2),RANK
M=3
N=2
NRHS=1
LDA=3
LDB=3
RANK=0
LWORK=9
INFO=0
RCOND=1.D-10
RANK =0
LWORK=9
CALL DGELSY(M,N,NRHS,A,LDA,B,LDB,JVPT,RCOND,RANK,LWORK,INFO)
IF(INFO.EQ.0) THEN
write(3,3010) (b(j),j=1,3)
3010 format('The solution is ',3f10.4)
ELSE
WRITE(3,*) 'DGELSY failed!'
ENDIF
STOP
END

Also is there anywhere I could find example input/output associated with each of the routines available so that I could get some confidence in using the routine?

I am grateful if anyone can help.

Regards,

Jacky
jacky8018
 
Posts: 2
Joined: Wed Apr 06, 2011 5:58 pm

Re: CXML for Compaq Visual Fortran 6.6

Postby admin » Wed Apr 06, 2011 11:20 pm

Jacky, it seems that you have the BLAS library installed but no the complete LAPACK library, just a subset.
From here: http://www.fhi-berlin.mpg.de/th/locserv ... 3dxml.html
I can see that dgelsy are not part of CXML, but this is part of Netlib LAPACK.
What you can do is download and build LAPACK for your machine (or just the routine). See http://www.netlib.org/lapack for more info
I believe CXML is including some examples.
Otherwise, you can take a look at NAG Examples: http://www.nag.com/lapack/
Julie
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm

Re: CXML for Compaq Visual Fortran 6.6

Postby jacky8018 » Thu Apr 07, 2011 3:20 pm

Hi Julie

Thank you for your information. In fact I've already been through what you suggested and stumbled on the fact that the LAPACK is only available for Intel Fortran Compiler, which I don't have. They (somehow) do not support CVF any more, for which I still don't know why. I have already downloaded the LAPACK previously (from http://icl.cs.utk.edu/lapack-for-windows/lapack/#build) but my system complained "invalid archive directory" when it tried to WinZip it. It may be due to the WinZiper, I am not entirely sure.

As you said, you can download the source code itself but then you realised that I need another 10 subroutines and then perhaps more. If this is the only way, then I have to persevere with it until it works or try other avenues.

Anyway, I'll keep trying and I'm sure that I'm not the only one who has a problem.

Thank you very much for your help.

Jacky

PS I just found your response to an earlier query re CVF as below. I think it said it all. It looks like I need to upgrade my compiler to Intel Visual Fortran.

===========
by Julie » Thu Jun 05, 2008 5:34 pm

Navin,
The Visual Studio Solution for LAPACK requires Intel Visual Fortran, we do not plan to support Compaq Visual Fortran. I do not know how compatible are Compaq Visual Fortran and Intel Visual Fortran....You may want to take a look here to get additional info: http://h21007.www2.hp.com/portal/site/d ... 5d6e10RCRD

Do you manage to open the VS Project and compile it?

The timing are no more included in LAPACK, the timer GUI has not been released yet.

You can find some info on LAPACK routine in the LAPACK User Guide. http://www.netlib.org/lapack/lug/node70.html for Eigenvalue Problem.
Another way is to search the forum, it contains a lots of code from user.

Hope it helps
Julie
jacky8018
 
Posts: 2
Joined: Wed Apr 06, 2011 5:58 pm


Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 1 guest

cron